ImageEn, unit imageenview

TImageEnView.TransformTool

TImageEnView.TransformTool


Declaration

property TransformTool: TIETransformToolInteraction;


Description

Provides access to the methods and properties of the TIETransformToolInteraction class, which is used 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 transformation box by dragging grips
User can click "Enter" to enact the transformation
User can click "Esc" to cancel the transformation

Note:
Specify the color of the transformation selection using SelColor1 and SelColor2
Specify the style of transformation selection grips using SetSelectionGripStyle


Demo

Demo  Demos\IEVision\TPSShapeTransform\TPSShapeTransform.dpr


Example

// Enable the Warp Tranformation tool
ImageEnView1.MouseInteractGeneral := [miTransformTool];

// Fill new borders areas with white
ImageEnView1.TransformTool.FillMode  := ietfFixedColor;
ImageEnView1.TransformTool.FillColor := clWhite;

// Enact the transformation (same as user clicking "Enter")
ImageEnView1.TransformTool.Enact();

// Cancel the transformation (same as user clicking "Esc")
ImageEnView1.TransformTool.Cancel();


See Also

ImageEn Interactive Tools
KeyboardShortcuts