ImageEn, unit iexLayers

TIELayer.Cropped

TIELayer.Cropped


Declaration

property Cropped: Boolean;


Description

When enabled, any part of the layer that is outside the background image (layer 0) area will not be displayed.

If this value is false, then LayersCropped controls whether layers are cropped to the background.

Default: False


Example

// Crop the display of only the current layer
ImageEnView1.LayersCropped := False;
ImageEnView1.CurrentLayer.Cropped := True;
ImageEnView1.Update();

// Crop the display of all layers
ImageEnView1.LayersCropped := True;
ImageEnView1.Update();

// Don't crop the display of any layers
ImageEnView1.UnlockUpdate();
ImageEnView1.LayersCropped := False;
for i := 0 to ImageEnView1.LayersCount - 1 do
  ImageEnView1.Layers[ I ].Cropped := False;
ImageEnView1.LockUpdate();