Unit 'Graphics' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TRasterImage.TransparentMode

Determines how transparent pixels are represented in the image.

Declaration

Source position: graphics.pp line 1364

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, 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

TRasterImage.TransparentColor

  

Color used to represent transparent pixels in the image.

TRasterImage.Masked

  

Masked - returns True if a Mask is being applied.

TGraphic.Transparent

  

Indicates whether some parts of the image are not opaque.

TTransparentMode

  

Represents transparency modes used in raster images.



CT Web help

CodeTyphon Studio