Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
This documentation is for the old version. Go to the latest Graphics Mill docs

Bitmap.FromHdc Method

Extracts the image data from the specified device context and creates the Bitmap class instance containing this image data.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)


Visual Basic
Public Shared Function FromHdc ( _
	hdc As IntPtr, _
	rectangle As Rectangle _
) As Bitmap
public static Bitmap FromHdc(
	IntPtr hdc,
	Rectangle rectangle



Type: System.IntPtr

The handle to device context to get the bitmap from.

Type: System.Drawing.Rectangle

The rectangle of which specifies a viewport to get the bitmap from.

Return Value

The Bitmap class instance which contains the image data from the device context.

See Also