ImageEn, unit imageenview

TImageEnView.LayersCropped

TImageEnView.LayersCropped


Declaration

property LayersCropped: Boolean;


Description

When enabled, any part of layers that are outside the background image (layer 0) area will not be displayed.
If true, it overrides the Cropped property of individual layers.

Default: False


Example

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

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

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