TRasterImage.Canvas property
The
Canvas where the raster image is rendered.
Declaration
property Canvas: TCanvas read GetCanvas;Description
Canvas is a read-only
TCanvas property which contains
the drawing surface where the data for the image is rendered.
Reading the value for the property causes the CreateCanvas method
to be called when the member has not been initialized. In TRasterImage, the
Canvas member is an instance of TBitmapCanvas. It is configured to
use the CanvasChanging and Changed methods for the
OnChanging and OnChange event handlers in the canvas.
The device context (or handle) for the Canvas is modified when the
BitmapHandle or MaskHandle are assigned or released for
the class instance.
Canvas is used in the Draw method to get the rendered content
transferred to a destination canvas. Canvas is also used to auto-detect the
TransparentColor using the Pixels in the image.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
