ImageEn, unit iexUserInteractions |
|
TIETransformToolInteraction
Declaration
TIETransformToolInteraction = class(TIEUserInteraction);
Description
A class of
TIEUserInteraction that controls interaction for the Warp Tranformation tool (when
MouseInteractGeneral is
miTransformTool).
The Warp Tranformation tool allows the user to apply a
Thin Plate Spline Shape Transformation to the image.
IEVision is required for the Warp Tranformation Tool.
When the Warp Tranformation tool is active:
◼User can select an area of the image to transform
◼User can resize the tranformation box by dragging grips
◼User can click "Enter" to enact the tranformation
◼User can click "Esc" to cancel the tranformation
Note:
◼Specify the color of the tranformation selection using
SelColor1 and
SelColor2
◼Specify the style of tranformation selection grips using
SetSelectionGripStyle
| Demos\IEVision\TPSShapeTransform\TPSShapeTransform.dpr |
// Enable the Warp Tranformation tool
ImageEnView1.MouseInteractGeneral := [miTransformTool];
// Fill new borders areas with white
ImageEnView1.TransformTool.FillMode := ietfFixedColor;
ImageEnView1.TransformTool.FillColor := clWhite;
// Enact Tranformation (same as user clicking "Enter")
ImageEnView1.TransformTool.Enact();
// Cancel Tranformation (same as user clicking "Esc")
ImageEnView1.TransformTool.Cancel();
// Add guide lines
ImageEnView1.TransformTool.DrawGuides := True;
General
See Also
◼ImageEn Interactive Tools
◼OnUserInteraction
◼TImageEnView Actions
◼thinPlateSplineShapeTransform