Set the AspectRatio property to True when transforming, then hold down the Shift key while manipulating the mouse.

Example Operation and Code

Transforms a rectangle / ellipse / rounded rectangle object while maintaining the aspect ratio.

Using Mouse To Resize Object

(1) Set the ImageKit1.Edit.AspectRatio property to True
(2)Select a single object, grab one of the four corner blocks and hold down the Shift key while moving the mouse.

(* You can change the behavior by pressing or releasing the Shift key even during mouse operation.)
(* When finished, release the Shift key after mouse-up.)

Using Code To Resize Object

[Visual Basic.NET]

'When using Annotation function, the following property must be set to True.
ImageKit1.Edit.EditEnabled = True

'Select the object to be transformed (assuming the target object number is 3)
ImageKit1.Edit.SelectObject(3)
'* When using code, the value of the AspectRatio property does not matter.

'Set the configuration coordinates after transformation (keep the upper left position and increase the size by 1.5 times while maintaining the aspect ratio)
Dim newPoints As Point() = { ImageKit1.Edit.SelectedObjectDrawPoints(0), _
          New Point(ImageKit1.Edit.SelectedObjectDrawPoints(1).X * 1.5, _
          ImageKit1.Edit.SelectedObjectDrawPoints(1).Y * 1.5) }
ImageKit1.Edit.SelectedObjectDrawPoints = newPoints

[Visual C#.NET]

//When using Annotation function, the following property must be set to True.
ImageKit1.Edit.EditEnabled = true;

//Select the object to be transformed (assuming the target object number is 3)
ImageKit1.Edit.SelectObject(3);
//* In the case of code, the value of the AspectRatio property does not matter.

//Set the configuration coordinates after transformation (keep the upper left position and increase the size by 1.5 times while maintaining the aspect ratio)
Point[] newPoints = { ImageKit1.Edit.SelectedObjectDrawPoints[0],
          new Point(Convert.ToInt32(ImageKit1.Edit.SelectedObjectDrawPoints[1].X * 1.5),
          Convert.ToInt32(ImageKit1.Edit.SelectedObjectDrawPoints[1].Y * 1.5)) };
ImageKit1.Edit.SelectedObjectDrawPoints = newPoints;

Relevant Properties

ImageKit.Edit.AspectRatio
ImageKit.Edit.SelectedObjectDrawPoints

Relevant Methods

ImageKit.Edit.SelectObject

The ImageKit.NET3 is created by Newtone Corporation