API:Vcl.Graphics.TCanvas
Delphi
TCanvas = class(TCustomCanvas)
C++
class PASCALIMPLEMENTATION TCanvas : public TCustomCanvas
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | Vcl.Graphics |
Description
Defines an abstract base class for other canvas objects.
Vcl.Graphics.TCanvas inherits from Vcl.Graphics.TCustomCanvas. All content below this line refers to Vcl.Graphics.TCustomCanvas.
Defines an abstract base class for other canvas objects.
Use TCustomCanvas as a base class for other canvas objects. TCustomCanvas introduces a number of abstract methods that must be implemented in descendant classes to provide full support for drawing on a graphical surface.
The most important functionalities exposed by TCustomCanvas are:
- Drawing and filling a variety of shapes and lines.
- Writing text
- Rendering graphic images.
- Enabling a response to changes in the current image.
TCustomCanvas has two descendants, both abstracting drawing operations using a certain operating system-defined API. TCanvas uses the Windows GDI backend for drawing, while TDirect2DCanvas uses the DirectX DirectDraw API for drawing.