FMX.Objects.TPaintBox
![TPaintBox](/images/Libraries/Athens/e/8/8b/FMX.Objects.TPaintBox.png)
Delphi
TPaintBox = class(TControl)
C++
class PASCALIMPLEMENTATION TPaintBox : public Fmx::Controls::TControl
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.Objects.pas FMX.Objects.hpp |
FMX.Objects | FMX.Objects |
Description
TPaintBox defines a 2D image component providing a canvas that an application can use for rendering an image. It inherits TControl and can be used in styles to construct controls.
Unlike TImage, which displays a picture that is stored in a file, TPaintBox requires an application to draw the image directly on a canvas. Use the OnPaint event handler to draw on the paint box's FMX.Graphics.TCanvas, the drawing surface of the paint box.