API:Vcl.Direct2D.TDirect2DCanvas

Delphi
TDirect2DCanvas = class(TCustomCanvas)
C++
class PASCALIMPLEMENTATION TDirect2DCanvas : public Vcl::Graphics::TCustomCanvas
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Vcl.Direct2D.pas Vcl.Direct2D.hpp |
Vcl.Direct2D | Vcl.Direct2D |
Description
Defines an abstract base class for other canvas objects.
Vcl.Direct2D.TDirect2DCanvas 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.