[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
The Canvas where the raster image is rendered.
Source position: graphics.pp line 1322
public property TRasterImage.Canvas : TCanvas |
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.
Version 4.0 | Generated 2025-05-03 | Home |