ImageEn, unit iexLayers




property Opacity: double;


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

Opacity vs Transparency

A legacy Transparency property is also available. 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 Opacity=1 and make use of transparency, or alternatively, leave Transparency=255 and make use of Opacity. For example, for 50% opacity: Transparency = 255 and Opacity = 0.5, or Transparency = 128 and Opacity = 1.0

Default: 1.0 (fully opaque)

See Also

- AlphaEdgeFeathering
- IEAlphaToOpacity


// Make all selected layers 50% opacity
for i := 0 to ImageEnView1.LayersCount - 1 do
  if ImageEnView1.Layers[ I ].Selected then
    ImageEnView1.Layers[ I ].Opacity := 0.5;

// Set opacity to Transparency value of 230 (90% opaque)
ImageEnView1.CurrentLayer.Opacity := IEAlphaToOpacity( 230 );