FMX.Styles.Objects.TCustomStyleObject.DrawToCanvas
Delphi
procedure DrawToCanvas(const Canvas: TCanvas; const ARect: TRectF; const AOpacity: Single = 1.0); overload; inline;
procedure DrawToCanvas(const Canvas: TCanvas; const ARect: TRectF; const ATintColor: TAlphaColor; const AOpacity: Single = 1.0); overload;
C++
void __fastcall DrawToCanvas(Fmx::Graphics::TCanvas* const Canvas, const System::Types::TRectF &ARect, const float AOpacity = 1.000000E+00f)/* overload */;
void __fastcall DrawToCanvas(Fmx::Graphics::TCanvas* const Canvas, const System::Types::TRectF &ARect, const System::Uitypes::TAlphaColor ATintColor, const float AOpacity = 1.000000E+00f)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Styles.Objects.pas FMX.Styles.Objects.hpp |
FMX.Styles.Objects | TCustomStyleObject |
Description
Draws the prepared image to the canvas.
Canvas
specifies the canvas to draw on.
ARect
specifies the rectangle to draw the image in.
The AOpacity
parameter specifies the transparency of the image to draw.