TRasterImage.TransparentMode property
Determines how transparent pixels are represented in the image.
Declaration
property TransparentMode: TTransparentMode read FTransparentMode write SetTransparentMode default tmAuto;Description
TransparentMode is a
TTransparentMode property which
indicates how transparent pixels in the image are represented in the raw
image data. It is related to the
TransparentColor,
Transparent and
Masked properties.
TransparentMode can contain one of the following values from the TTransparentMode enumeration:
- tmAuto
- Transparent pixels are represented using the color stored at the bottom-left pixel in the raw image data.
- tmFixed
- Transparent pixels are represented using the color stored in the TransparentColor property. The RequestTransparentColor method is called to resolve the color to the pixel color used on the raw image data (when available) or the canvas (by default).
The default value for the property is tmAuto. The property value is
automatically set to tmAuto if TransparentColor contains clDefault. In
addition, TransparentColor is automatically set to clDefault when
TransparentMode is set to tmAuto.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
