FMX.Controls.TControl.PaintTo

From RAD Studio API Documentation
Jump to: navigation, search

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