ImageEn, unit imageenview |
|
TImageEnView.LayersSizeAll
Declaration
procedure LayersSizeAll(HorzSizing, VertSizing: Double; bSelectedOnly: Boolean = False; bFixSizes: Boolean = False; ScalePosition: Boolean = False);
Description
Scales the
Width and
Height values for all layers (or just selected if
bSelectedOnly = True).
HorzSizing and
VertSizing are percentage values, so 2 will double the layer size, and 0.5 will halve it.
If
bFixSizes = True, then
LayersFixSizes is called to resample the layer to the new sizes.
If
ScalePosition is True, then
PosX and
PosY are scaled to keep their position relative to other layers (best if also scaling the background layer). If False the layer is centered after scaling (best when only scaling some layers).
Note: To size by pixels rather than scale, see
LayersRepositionAll // Halve the size of all layers
ImageEnView1.LayersSizeAll( 0.5, 0.5, False, False, True );
// Increase the size of selected layers by 25%
ImageEnView1.LayersSizeAll( 1.25, 1.25, True );
See Also
◼LayersRepositionAll◼LayersRotateAll