ImageEn, unit imageenview

TImageEnView.CurrentLayer

TImageEnView.CurrentLayer


Declaration

property CurrentLayer: TIELayer;


Description

Provides access to the currently active layer.

This is equivalent to:
ImageEnView.Layers[ ImageEnView.LayersCurrent ]

See the Layers property for more info.

Note: Use LayersCurrent to get or set the current layer index. Use CurrentLayer to return the layer object.


Example

ImageEnView.LayersAdd();
ImageEnView.CurrentLayer.Transparency := 200;

// Remove the fill from the current layer
ImageEnView1.CurrentLayer.FillColor := clNone;
ImageEnView1.Update();