[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TRasterImage.TransparentColor

Color used for transparent pixels in the image.

Declaration

Source position: graphics.pp line 1330

public property TRasterImage.TransparentColor : TColor
  read GetTransparentColor
  write SetTransparentColor
  default clDefault;

Description

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).

See also

TRasterImage.RequestTransparentColor

  

Gets the color used to represent transparent pixels in the image.

TRasterImage.TransparentMode

  

Determines how transparent pixels are represented in the image.

TRasterImage.MaskHandleAllocated

  

MaskHandleAllocated - returns True if a handle has been allocated for the Mask.

TRasterImage.MaskHandle

  

The handle allocated for the Bitmap Mask.

TRasterImage.Changed

  

Changed - method to call when properties have changed.

TGraphic.Transparent

  

Indicates whether some parts of the image are not opaque.

TGraphic.Modified

  

Indicates if the graphic data in the class instance has been modified.

TGraphic.OnChange

  

Event handler signalled when data in the class instance is changed.

TColor

  

Color type used by most LCL drawing functions.


Version 4.0 Generated 2025-05-03 Home