From RAD Studio API Documentation
Jump to: navigation, search


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


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


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