void DrawBitmap( Bitmap bitmap, Rect destRect )

book_4_sparkGenerated
code_blocksInput

Description

The DrawBitmap method is used to draw a specified bitmap onto the current bitmap at a specified destination rectangle. This method allows for the composition of images by overlaying one bitmap onto another within a defined area.

Usage

To use the DrawBitmap method, you need to have an instance of the Bitmap class. You will also need another Bitmap instance that you want to draw onto the current bitmap, and a Rect that defines the area where the bitmap will be drawn.

Example usage:

Bitmap sourceBitmap = new Bitmap();
Bitmap destinationBitmap = new Bitmap();
Rect destinationRect = new Rect(0, 0, 100, 100);

destinationBitmap.DrawBitmap(sourceBitmap, destinationRect);

Example

Bitmap sourceBitmap = new Bitmap();
Bitmap destinationBitmap = new Bitmap();
Rect destinationRect = new Rect(0, 0, 100, 100);

destinationBitmap.DrawBitmap(sourceBitmap, destinationRect);