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)

Syntax

Visual Basic

Public Shared Function FromHdc ( _
	hdc As IntPtr, _
	rectangle As Rectangle _
) As Bitmap

C#

public static Bitmap FromHdc(
	IntPtr hdc,
	Rectangle rectangle
)

Parameters

hdc

Type: System..::.IntPtr

The handle to device context to get the bitmap from.
rectangle

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.