ImageEn, unit iexLayers

TIELayer.Transparency

TIELayer.Transparency


Declaration

property Transparency: integer;


Description

Set the overall transparency of the layer in the range from 0 (fully transparent) to 255 (totally opaque).


Opacity vs Transparency

Both the Opacity and Transparency properties provide the same functionality. Transparency is the traditional ImageEn value, whereas Opacity provides easier PSD compatibility.
While they can be used in combination, generally only one will be used, i.e. leave Transparency=255 and make use of Opacity.



Default: 255 (fully opaque)


See Also

Opacity
FillOpacity


Example

// Make all selected layers 50% transparency
for i := 0 to ImageEnView1.LayersCount - 1 do
  if ImageEnView1.Layers[ I ].Selected then
    ImageEnView1.Layers[ I ].Transparency  := 128;
ImageEnView1.Update();