This documentation is for the old version. Go to the latest Graphics Mill docs

GdiGraphics.DrawImage Method (Bitmap, Int32, Int32, CombineMode)

Draws a Bitmap object.

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

Syntax

Visual Basic
Public Sub DrawImage ( _
	bitmap As Bitmap, _
	destinationX As Integer, _
	destinationY As Integer, _
	combine As CombineMode _
)
C#
public void DrawImage(
	Bitmap bitmap,
	int destinationX,
	int destinationY,
	CombineMode combine
)

Parameters

bitmap

Type: Aurigma.GraphicsMill.Bitmap

Bitmap object you are going to draw.
destinationX

Type: System.Int32

Horizontal position of left-top corner of the bitmap.
destinationY

Type: System.Int32

Vertical position of left-top corner of the bitmap.
combine

Type: Aurigma.GraphicsMill.Transforms.CombineMode

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

Remarks

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

Note

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.

See Also

Reference

Manual