Draws the current bitmap on a given System.Drawing.Graphics object (standard .NET class for drawing).
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public void DrawOn( Graphics destinationGraphics, int destinationX, int destinationY, CombineMode combine )
Type: System.Drawing.Graphics
A System.Drawing.Graphics object on which the current bitmap should be drawn.Type: System.Int32
The x-coordinate of the upper-left corner of the drawn image.Type: System.Int32
The y-coordinate of the upper-left corner of the drawn image.The bitmap is drawn to the destination rectangle on the given System.Drawing.Graphics object with dimensions equal to the dimensions of the bitmap.
If the 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 the bitmap to some GDI-compatible format (like Format32bppArgb) to increase the performance.