Device.Present Method ()

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

Overload List

public void Present();
public void Present(Control);
public void Present(IntPtr);
public void Present(Rectangle, bool);
public void Present(Rectangle, Control, bool);
public void Present(Rectangle, IntPtr, bool);
public void Present(Rectangle, Rectangle, Control);
public void Present(Rectangle, Rectangle, IntPtr);

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, throwing an InvalidCallException exception, if it is called between BeginScene and EndScene pairs, unless the render target is not the current render target (for example, the back buffer that results from the creation of an additional swap chain).

Exceptions

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.

See Also