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

TRasterImage.SetTransparentMode

Sets the value for the TransparentMode property.

Declaration

Source position: graphics.pp line 1320

protected procedure TRasterImage.SetTransparentMode(

  AValue: TTransparentMode

);

Arguments

AValue

  

New value for the property.

Description

No actions are performed in the method when AValue is the same as the existing value for the property.

TransparentMode is set to tmAuto when TransparentColor contains clDefault. Otherwise, the RequestTransparentColor method is called to get and store the color in the bottom-left pixel in the raw image data to the TransparentColor property.

ApplyTransparent is called to apply the effective transparency for the image based on the settings in Transparent, TransparentColor, and TransparentMode.

Version info

Modified in LCL version 4.2 to call the ApplyTransparent method.

See also

TRasterImage.TransparentMode

  

Determines how transparent pixels are represented in the image.

TRasterImage.TransparentColor

  

Color used to represent transparent pixels in the image.

TRasterImage.RequestTransparentColor

  

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

TTransparentMode

  

Represents transparency modes used in raster images.

clDefault

  

The default color of a given control.

TGraphic.Transparent

  

Indicates whether some parts of the image are not opaque.



CT Web help

CodeTyphon Studio