Vcl.Graphics.TCustomCanvas

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TPersistentSystem.TObjectTCustomCanvas

Delphi

TCustomCanvas = class(TPersistent)

C++

class PASCALIMPLEMENTATION TCustomCanvas : public System::Classes::TPersistent

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.

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.

See Also