FMX.Graphics.TCanvas.CreateFromPrinter
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
- FMX.Printer.TPrinter
- FMX.Graphics.TAbstractPrinter
- FMX.Graphics.TCanvasManager
- FMX.Graphics.TCanvas.CreateFromBitmap
- FMX.Graphics.TCanvas.CreateFromWindow
- FMX.Graphics.TCanvas.Destroy