Draws current bitmap on another bitmap.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Sub Draw ( _ destinationBitmap As Bitmap, _ destinationRectangle As Rectangle, _ sourceRectangle As Rectangle, _ combine As CombineMode, _ opacity As Single, _ interpolationMode As InterpolationMode _ )
public void Draw( Bitmap destinationBitmap, Rectangle destinationRectangle, Rectangle sourceRectangle, CombineMode combine, float opacity, InterpolationMode interpolationMode )
Type: System.Drawing.Rectangle
Destination rectangle (see Remarks section).Type: System.Drawing.Rectangle
Source rectangle (see Remarks section).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.Pixels from source rectangle of current bitmap are drawn to destination rectangle on the target bitmap. If source rectangle dimensions differ from dimensions of destination rectangle, pixels are resized to have the same size as destination rectangle.
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).
If you want method to calculate width and height automatically, you can pass 0 to these arguments. It will be calculated with the following way:
All coordinates are measured in units specified with Unit property of the source bitmap.