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

Bitmap.Draw Method (Bitmap, Int32, Int32, CombineMode, Single)

Draws current bitmap on another bitmap.

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

Syntax

Visual Basic
Public Sub Draw ( _
	destinationBitmap As Bitmap, _
	destinationX As Integer, _
	destinationY As Integer, _
	combine As CombineMode, _
	opacity As Single _
)
C#
public void Draw(
	Bitmap destinationBitmap,
	int destinationX,
	int destinationY,
	CombineMode combine,
	float opacity
)

Parameters

destinationBitmap

Type: Aurigma.GraphicsMill.Bitmap

Target (destination) bitmap (on which current bitmap should be drawn).
destinationX

Type: System.Int32

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

Type: System.Int32

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

Type: Aurigma.GraphicsMill.Transforms.CombineMode

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

Type: System.Single

A number in range [0, 1] specifying total opacity of the image. If 0, image is completely transparent, if 1, image is completely opaque.

Remarks

Bitmap is drawn to destination rectangle on the target bitmap with destination dimensions equal to the dimensions of the source bitmap.

Note

If pixel formats of bitmaps are different, the method may fail (for some pairs of pixel formats). So it is recommended to make sure that current bitmap pixel format is compatible with target bitmap (or, ideally, the same).

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

See Also

Reference

Manual