ImageEn, unit imageenview |
|
TImageEnView.LayersAlign
Declaration
procedure LayersAlign(Alignment: TIEAlignLayers; Index: Integer = LYR_SELECTED_LAYERS);
Description
Aligns all selected layers relative to the image or other layers.
The index of a specific layer can be specified, or
LYR_ALL_LAYERS (-3) to process all layers, or
LYR_SELECTED_LAYERS (-2) to process selected layers.
// Align selected layers on the left edge
ImageEnView1.LayersAlign( ilaAlignLeftEdges );
// Position all layers in the center of the document
ImageEnView1.LayersAlign( ilaAlignHorizontalCenters );
// Move layer #3 to the center of the image
ImageEnView1.LayersAlign( ilaAlignToVerticalCenter, 2 );
See Also
◼LayersRepositionAll