Draws current bitmap on given System.Drawing.Graphics object (standard .NET class for drawing).
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Sub Draw ( _ destinationGraphics As Graphics, _ destinationX As Integer, _ destinationY As Integer, _ combine As CombineMode, _ opacity As Single _ )
public void Draw( Graphics destinationGraphics, int destinationX, int destinationY, CombineMode combine, float opacity )
Type: System.Drawing.Graphics
Target System.Drawing.Graphics object (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: 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.Bitmap is drawn to destination rectangle on the given System.Drawing.Graphics object 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.