FMX.Graphics.TCanvas.CreateFromPrinter

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor CreateFromPrinter(const APrinter: TAbstractPrinter); virtual;

Properties

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

Description

Creates and initializes a TCanvas from a printer's native handle.

It is called directly from TPrinter.

The APrinter parameter is the printer to create the TCanvas from.

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

MyCanvas := TCanvasManager.CreateFromPrinter(APrinter);

See Also