Specifies the selection aspect ratio.
If SelectionAspectRatio is -1, the aspect ratio is active only when user press the ALT key, and it is automatically calculated.
If SelectionAspectRatio is 0, the size of the selection is fixed and determined by SelectionAbsWidth and SelectionAbsHeight properties.
If SelectionAspectRatio is >0, ImageEn maintains the specified aspect.
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |
public double SelectionAspectRatio { get; set; }
Public Property SelectionAspectRatio As Double Get Set
public: property double SelectionAspectRatio { double get (); void set (double value); }
Examples
Example 1: we want standard behavior
CopyC#
IEViewer1.SelectionAspectRatio=-1;
Example 2: we want a fixed selection of 100 x 100 pixels
CopyC#
IEViewer1.SelectionAbsWidth=100; IEViewer1.SelectionAbsHeight=100; IEViewer1.SelectionAspectRatio=0;
Example 3: we want a fixed aspect ratio of 2 (height=2*width)
CopyC#
IEViewer1.SelectionAspectRatio=2;