This method sets whether or not the aspect ratio of the orginal image will be maintained in the selected image object.
Parameters
setAspectRatio
A value of type bool(Boolean) representing whether or not the aspect ratio of the original image will be maintained.
Return Value
Returns True if successful, otherwise returns False.
Explanation
Executing the SetSelectedObjectAspectRatio method, when the setAspectRatio parameter is set to True, will mean that the aspect ratio (ratio of height to width) of the original image will be maintained when that image is used in the selected image annotation object.
Executing this method is the same as selecting an object, right clicking the object to display the context menu, selecting "Properties" and then checking (or unchecking) the "Maintain AspectRatio" checkbox.
This method is enabled only when the selected object is an image object. If no object is selected or if the selected object is not an image object, this method will return False.
Also See
ImageKit.Edit Members | Newtone.ImageKit.Win.ImageKit