ImageEn, unit imageenview

TImageEnView.LayersRotationUseFilterOnPreview

TImageEnView.LayersRotationUseFilterOnPreview


Declaration


property LayersRotationUseFilterOnPreview: Boolean;


Description


Displays the user's rotation with the selected anti-alias effect immediately (i.e. before calling LayersFixRotations).

Note: Preview of large rotated images at high quality can be slow, so it is recommended that you also use LayersFastDrawing.

Default: False


Layer Performance Properties


To improve the performance in layer applications, consider the following properties:
- LayersCaching: Caches the view of each layer. Much faster but uses more memory.
- LayersFastDrawing: Display quality of layers (and whether the quality view is delayed).
- ZoomFilter/DelayZoomFilter: Display quality of images (and whether the quality view is delayed). This option is ignored if LayersFastDrawing is active
- LayersRotationUseFilterOnPreview: Whether the quality filter (LayersRotationFilter) is applied when previewing the image during rotation

Review the Demos\LayerEditing\Layers_AllTypes\ demo for example code.


Example


// Rotate the current layer 45 degrees clockwise at highest quality
ImageEnView1.CurrentLayer.Rotate := -45;
ImageEnView1.LayersRotationAntialias := True;
ImageEnView1.LayersRotationFilter := ierBilinear;
ImageEnView1.LayersRotationUseFilterOnPreview := true;
ImageEnView1.LayersFastDrawing := iefDelayed;

// Allow the user to free rotate layers at highest quality
ImageEnView1.MouseInteract := [miRotateLayers];
ImageEnView1.LayersRotationAntialias := True;
ImageEnView1.LayersRotationFilter := ierBilinear;
ImageEnView1.LayersRotationUseFilterOnPreview := true;
ImageEnView1.LayersFastDrawing := iefDelayed;


See Also


- LayersRotationFilter
- LayersRotationAntialias
- LayersFastDrawing