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.Draw Method (IntPtr, Int32, Int32, CombineMode)

Draws current bitmap on given Windows GDI device context (represented as handle to device context, i.e. HDC).

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


Visual Basic
Public Sub Draw ( _
	hdc As IntPtr, _
	destinationX As Integer, _
	destinationY As Integer, _
	combine As CombineMode _
public void Draw(
	IntPtr hdc,
	int destinationX,
	int destinationY,
	CombineMode combine



Type: System.IntPtr

Target handle to device context (on which current bitmap should be drawn).

Type: System.Int32

Horizontal position of left-top corner of the destination rectangle.

Type: System.Int32

Vertical position of left-top corner of the destination rectangle.

Type: Aurigma.GraphicsMill.Transforms.CombineMode

Algorithm of images blending (plain pixels copying, alpha blending, bitwise operations, etc).


Bitmap is drawn to destination rectangle on the given HDC with dimensions equal to the dimensions of the bitmap.


If bitmap has pixel format which is not GDI-compatible (e.g. extended pixel formats, CMYK, etc) method will automatically create a copy converted to the Format32bppArgb. That's why you always get it drawn, but if you are going to call this method multiple times, it is recommended to convert it to some GDI-compatible format (like Format32bppArgb) to increase the performance.

All coordinates are measured in units specified with Unit property of the source bitmap.

See Also