API:Vcl.Graphics.TCanvas.BrushCopy
Delphi
procedure BrushCopy(const Dest: TRect; Bitmap: TBitmap;
const Source: TRect; Color: TColor); override;
C++
virtual void __fastcall BrushCopy(const System::Types::TRect &Dest, TBitmap* Bitmap, const System::Types::TRect &Source, System::Uitypes::TColor Color);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TCanvas |
Description
Copies a portion of a bitmap onto a rectangle on the canvas, replacing one of the colors of the bitmap with the brush of the canvas.
Vcl.Graphics.TCanvas.BrushCopy inherits from Vcl.Graphics.TCustomCanvas.BrushCopy. All content below this line refers to Vcl.Graphics.TCustomCanvas.BrushCopy.
Copies a portion of a bitmap onto a rectangle on the canvas, replacing one of the colors of the bitmap with the brush of the canvas.
Override the BrushCopy method to implement achieving of special effects, such as making the copied image partially transparent. BrushCopy should be implemented mainly for backward compatibility.
Dest specifies the rectangular portion of the canvas that will receive the copy of the bitmap. Bitmap specifies the graphic to copy from. Source specifies the rectangular area of Bitmap to copy. Color specifies the color in Bitmap to replace with the brush of the canvas.