Skip to main content
Pie
ra0

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCanvas.BrushCopy(TRect,TBitmap,TRect,TColor) Method

Draws a portion of the specified bitmap on the canvas.

#Declaration

Delphi
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