TCustomCanvas = class(TPersistent)
class PASCALIMPLEMENTATION TCustomCanvas : public System::Classes::TPersistent
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.