Share via


Device.Present Method (Rectangle, Boolean)

Presents the display with the contents of the next buffer in the sequence of back buffers owned by the device.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Sub Present ( _
    rectPresent As Rectangle, _
    sourceRectangle As Boolean _
)
'Usage
Dim instance As Device
Dim rectPresent As Rectangle
Dim sourceRectangle As Boolean

instance.Present(rectPresent, sourceRectangle)
public void Present (
    Rectangle rectPresent,
    bool sourceRectangle
)
public:
void Present (
    Rectangle rectPresent, 
    bool sourceRectangle
)
public void Present (
    Rectangle rectPresent, 
    boolean sourceRectangle
)
public function Present (
    rectPresent : Rectangle, 
    sourceRectangle : boolean
)

Parameters

  • sourceRectangle
    Set to true if a Rectangle is being passed to the rectPresent parameter; otherwise, false.

Exceptions

Exception type Condition

DriverInternalErrorException

Internal driver error. Applications should generally shut down when receiving this error.

DeviceLostException

The device is lost but cannot be reset at this time. Therefore, rendering is not possible.

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

Remarks

If necessary, a stretch operation is applied to transfer the pixels within the source rectangle to the destination rectangle in the client area of the target window.

This method fails and throws an InvalidCallException exception if it is called between BeginScene and EndScene pairs, unless the render target is not the current render target such as the back buffer that results from the creation of an additional swap chain.

.NET Framework Security

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Device Class
Device Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace