This method sets whether or not the aspect ratio of the orginal image will be maintained in the selected image object.

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

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

 

The ImageKit.NET2 is created by Newtone Corporation