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

TRasterImage.TransparentMode

Determines how transparent pixels are represented in the image.

Declaration

Source position: graphics.pp line 1332

public property TRasterImage.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 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. TransparentColor is set to clDefault.
tmFixed
Transparent pixels are represented using the color stored in the TransparentColor property. Masked is set to True.

The default value for the property is tmAuto.

See also

TRasterImage.TransparentColor

  

Color used for transparent pixels in the image.

TRasterImage.Masked

  

Masked - returns True if a Mask is being applied.

TTransparentMode

  

Represents transparency modes used in raster images.


Version 4.0 Generated 2025-05-03 Home