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

TRasterImage.RequestTransparentColor

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

Declaration

Source position: graphics.pp line 1275

protected function TRasterImage.RequestTransparentColor: TColor;

Description

RequestTransparentColor is a TColor function used to get the color for transparent pixels in the image. It is called when the value tmFixed is assigned to the TransparentMode property.

RequestTransparentColor examines pixels in the raw image data to get the return value for the method. It gets the color for the pixel located at the bottom-left corner of the image (x = 0, y - Height-1).

When Empty returns True (raw image data is not available), the return value is clNone.

See also

TRasterImage.TransparentMode

  

Determines how transparent pixels are represented in the image.

TGraphic.Empty

  

Indicates if the graphic is empty (contains no data).

TTransparentMode

  

Represents transparency modes used in raster images.