Vcl.Direct2D.TDirect2DCanvas.RequiredState

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RequiredState(ReqState: TCanvasState); override;

C++

virtual void __fastcall RequiredState(Vcl::Graphics::TCanvasState ReqState);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Direct2D.pas
Vcl.Direct2D.hpp
Vcl.Direct2D TDirect2DCanvas

Description

Changes the current state of the canvas to meet the given requirements.

RequiredState ensures that a canvas meets a set of given requirements. If the requirements are not met, the canvas initializes its internal structures so that the requirements are met when the call to RequiredState is completed.

RequiredState verifies that the Pen, Brush, and Font objects are created and initialized. RequiredState also makes sure that the canvas has a valid rendering target.

See Also