FMX.Controls.TControl.PaintTo
Delphi
procedure PaintTo(const ACanvas: TCanvas; const ARect: TRectF; const AParent: TFmxObject = nil);
C++
void __fastcall PaintTo(Fmx::Graphics::TCanvas* const ACanvas, const System::Types::TRectF &ARect, Fmx::Types::TFmxObject* const AParent = (Fmx::Types::TFmxObject*)(0x0));
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TControl |
Description
Paints the current control to a specified canvas.
ACanvas specifies the canvas to draw on.
ARect specifies the rectangle area of the ACanvas to draw on.
AParent specifies the Parent of the control. By default, it is empty.
PaintTo is called in the process of applying effects on the control in ApplyEffect, in which the control is first painted on the effect's canvas using PaintTo and then the effect is processed. It is also used in MakeScreenshot in order to produce a screenshot bitmap.
Descendants of TControl override PaintTo to provide specific rendering of the respective controls.
See Also
- FMX.Types.TFmxObject.Parent
- FMX.Controls.TControl.ApplyEffect
- FMX.Controls.TControl.FEffectBitmap
- FMX.Controls.TControl.Canvas
- FMX.Controls.TControl.Paint
- FMX.Controls.TControl.PaintChildren
- FMX.Controls.TControl.Repaint
- FMX.Controls.TControl.Painting
- FMX.Controls.TControl.DoPaint
- FMX.Controls.TControl.OnPainting
- FMX.Controls.TControl.MakeScreenshot