Vcl.Graphics.TCustomCanvas.BrushCopy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure BrushCopy(const Dest: TRect; Bitmap: TBitmap;  const Source: TRect; Color: TColor); virtual; abstract;

C++

virtual void __fastcall BrushCopy(const System::Types::TRect &Dest, TBitmap* Bitmap, const System::Types::TRect &Source, System::Uitypes::TColor Color) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCustomCanvas

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.

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.

See Also