ImageEn, unit imageenview

TImageEnView.RotateTool

TImageEnView.RotateTool


Declaration

property RotateTool: TIERotateToolInteraction;


Description

Provides access to the methods and properties of the TIERotateToolInteraction class, which is used when MouseInteractGeneral is miRotateTool.

The Rotate tool allows the user to drag the image to freely rotate, use the left or right keys to rotate or the up/down keys to flip.


Demo

Demo  Demos\ImageEditing\RotateTool\RotateTool.dpr


Example

// Enable Free Rotate mode
ImageEnView1.MouseInteractGeneral := [miRotateTool];

// Cancel rotation (revert to 0 rotation)
ImageEnView1.RotateTool.Cancel();


See Also

 KeyboardShortcuts