Sign in Join
FPDoc Onlineexperiment

TCustomImage.Canvas property

Member of TCustomImagepublicIn unit ExtCtrls

Canvas used to draw the image.

Declaration

pascal
property Canvas: TCanvas read GetCanvas;

Description

TCustomImage re-implements the read access specifier for the property to ensure that a drawing surface is available in Picture. When not assigned, a temporary TBitmap instance is created and used as the image class in the Picture property. The Canvas for the bitmap is used as the property value. If the TCanvas has already been assigned, the inherited Canvas property (from TGraphicControl) is used.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.