BufferedGraphics.Render Method (IntPtr)

 

Writes the contents of the graphics buffer to the device context associated with the specified IntPtr handle.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public void Render(
	IntPtr targetDC
)

Parameters

targetDC
Type: System.IntPtr

An IntPtr that points to the device context to which to write the contents of the graphics buffer.

This method writes the contents of the graphics buffer to the device context associated with the specified IntPtr handle.

The following code example demonstrates how to render the contents of the graphics buffer grafx to a specified device context. This code is part of a larger example provided for the BufferedGraphics class.

private void RenderToDeviceContextHandle(IntPtr hDC)
{
    grafx.Render( hDC );
}

SecurityPermission

for access to unmanaged code. Related enumeration: UnmanagedCode.

.NET Framework
Available since 2.0
Return to top
Show: