ImageGear .NET - Updated
AspectKind Property




ImageGear23.Art Assembly > ImageGear.ART Namespace > ImGearARTPage Class : AspectKind Property
Gets or sets a value indicating the aspect kind.
Syntax
'Declaration
 
Public Property AspectKind As ImGearARTAspectKind
'Usage
 
Dim instance As ImGearARTPage
Dim value As ImGearARTAspectKind
 
instance.AspectKind = value
 
value = instance.AspectKind
public ImGearARTAspectKind AspectKind {get; set;}
public: __property ImGearARTAspectKind get_AspectKind();
public: __property void set_AspectKind( 
   ImGearARTAspectKind value
);
public:
property ImGearARTAspectKind AspectKind {
   ImGearARTAspectKind get();
   void set (    ImGearARTAspectKind value);
}

Property Value

ImGearARTAspectKind value.
Remarks
AspectKind sets displaying mode for ImGearARTRuler and ImGearARTPolyRuler annotations.

Absolute mode is default mode, where measuring length is calculated according to AspectNumeratorX/AspectDenominatorX/AspectNumeratorY/AspectDenominatorY properties of ImGearARTRuler or ImGearARTPolyRuler annotations. In this mode, a change to the resolution of the underlying image will not affect the physical measurements of the ruler/poly-ruler marks on the screen.

In Relative mode AspectNumeratorX/AspectDenominatorX/AspectNumeratorY/AspectDenominatorY properties keep aspect values of the ImGearARTMeasurementUnit structure. In contrast to Absolute mode, in Relative mode the measuring length of ImGearARTRuler and ImGearARTPolyRuler is calculated dynamically depending on the resolution of the currently displayed underlying image.

Note: If the page contains ImGearARTRuler or ImGearARTPolyRuler annotation(s), prior to setting a new value to this property, please initialize Resolution property first, otherwise ImageGear.Core.ImGearException will be thrown. The resolution is necessary for automatic reinitialization of AspectNumeratorX/AspectDenominatorX/AspectNumeratorY/AspectDenominatorY properties of the ruler and poly-ruler marks.

See Also

Reference

ImGearARTPage Class
ImGearARTPage Members
ImageResolution Property
DIB Property