This method sets the angle of the selected object.

[Visual Basic] Public Function SetSelectedObjectAngle(setAspectRatio As Single) As Boolean
[C#]public bool SetSelectedObjectAngle(float setAspectRatio);

Parameters

setAngle

The Angle of the selected object in degress.

Return Value

Returns True if successful, otherwise returns False.

Explanation

The SetSelectedObjectAngle method sets the angle of the selected object. This works in the same way as selecting a single object, right clicking to bring up the context menu and selecting "Properties". Then in that object's "Properties" dialog, setting the Angle. The unit is in degrees.

This method is enabled only when an object is selected. If no object is selected or if the selected object is a polyline, polygon, or pen object, this method will return False.

Note that when rotating objects with the mouse, it is not possible to rotate the object so that it or a portion of it is outside the base image. However, with the SetSelectedObjectAngle method, it is possible to set an angle where a portion of the object might be beyond the base image's area. When that is the case and the mouse is used to move or alter the object, the object will automatically be moved so that it is completely within the base image area.

Also See

ImageKit.Edit Members | Newtone.ImageKit.Win.ImageKit

 

The ImageKit.NET2 is created by Newtone Corporation