TcxCanvas.BrushCopy(TRect,TBitmap,TRect,TColor) Method
Draws a portion of the specified bitmap on the canvas.
Declaration
procedure BrushCopy(const Dest: TRect; Bitmap: TBitmap; const Source: TRect; Color: TColor);
Parameters
Name | Type |
---|---|
Dest | TRect |
Bitmap | TBitmap |
Source | TRect |
Color | TColor |
Remarks
Call this procedure to draw a rectangular portion of an image within a bitmap container passed as the Bitmap parameter. The Source and Dest parameters specify a portion of the source image and a target rectangle on the canvas.
The BrushCopy procedure uses a mask color to blend the source image with the target rectangle on the canvas. The procedure treats this color as transparent in the source image. Pass a mask color as the Color parameter.
Note
The BrushCopy procedure calls the BrushCopy procedure for the underlying canvas.
See Also