FMX.Graphics.TCanvas.CreateFromBitmap
Delphi
constructor CreateFromBitmap(const ABitmap: TBitmap; 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 TBitmap.
It is called directly from TBitmap.
The ABitmap
parameter is the TBitmap to create the TCanvas from.
Note: Do not directly call a TCanvas constructor. Call it using the TCanvasManager class.
MyCanvas := TCanvasManager.CreateFromBitmap(MyBitmap);