FMX.Graphics.TCanvas.CreateFromWindow

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor CreateFromWindow(const AParent: TWindowHandle; const AWidth, AHeight: Integer;  const AQuality: TCanvasQuality = TCanvasQuality.SystemDefault); virtual;

Properties

Type Visibility Source Unit Parent
constructor protected FMX.Graphics.pas FMX.Graphics TCanvas

Description

Creates and initializes a TCanvas from a parent window.

The AParent parameter is the parent of the TCanvas.

The AWidth and AHeight parameters specify the Width and Height of the TCanvas, respectively.

Note: Do not directly call a TCanvas constructor. Call it using the TCanvasManager class.

MyCanvas := TCanvasManager.CreateFromWindow (AParent, AWidth, AHeight);

See Also