[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Color used for transparent pixels in the image.
Source position: graphics.pp line 1330
public property TRasterImage.TransparentColor : TColor |
TransparentColor is a TColor property which indicates the color used for transparent pixels in the raw image data. The default value for the property is clDefault.
TransparentColor is used along with TransparentMode to determine whether a fixed color is used for transparency, or if the transparent color is read from a specified pixel in the raw image data.
When TransparentColor contains clDefault, the RequestTransparentColor method is used to get the transparency color value from the bottom-left pixel in the raw image data.
When setting a new value for the property, the TransparentMode property is updated as well. When clDefault is assigned to the property, TransparentMode is set to tmAuto. For other color values, TransparentMode is set to tmFixed.
MaskHandleAllocated is called to determine if a HBITMAP handle has been allocated for the MaskHandle property. When True, the MaskHandle is reset to 0 to indicate the handle is no longer in use or is invalid.
The Changed method is called to update the internal save stream for the image (when needed), set Modified to True, and signal the OnChange event handler (when assigned).
|
Gets the color used to represent transparent pixels in the image. |
|
|
Determines how transparent pixels are represented in the image. |
|
|
MaskHandleAllocated - returns True if a handle has been allocated for the Mask. |
|
|
The handle allocated for the Bitmap Mask. |
|
|
Changed - method to call when properties have changed. |
|
|
Indicates whether some parts of the image are not opaque. |
|
|
Indicates if the graphic data in the class instance has been modified. |
|
|
Event handler signalled when data in the class instance is changed. |
|
|
Color type used by most LCL drawing functions. |
Version 4.0 | Generated 2025-05-03 | Home |