ImageEn, unit imageenview |
|
TImageEnView.LayersFixRotations
Declaration
procedure LayersFixRotations(LayerIndex: Integer = LYR_ALL_LAYERS);
Description
Rotates the layer bitmaps to their
displayed rotation value. This will improve the quality of the layer.
This should be called after all layer rotation is finished to avoid quality loss.
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.
Note:
◼This can be called automatically using
loAutoFixRotation of
LayerOptions
◼To improve rotation quality, set
LayersRotationFilter
◼This method will also call
LayersFixSizes
◼After calling
LayersFixRotations,
Rotate will be 0.
// Improve rotation of top-most layer
ImageEnView1.LayersFixRotations( ImageEnView1.LayersCount - 1 );
// Improve rotation of all layers
ImageEnView1.LayersFixRotations( LYR_ALL_LAYERS );
// Improve rotation of selected layers
ImageEnView1.LayersFixRotations( LYR_SELECTED_LAYERS );