LEADTOOLS WIA (Leadtools.Wia assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
Orientation Property
See Also 
Leadtools.Wia Namespace > WiaProperties Structure : Orientation Property



Gets or sets the original orientation of a page or image to be acquired.

Syntax

Visual Basic (Declaration) 
Public Property Orientation As WiaOrientation
Visual Basic (Usage)Copy Code
Dim instance As WiaProperties
Dim value As WiaOrientation
 
instance.Orientation = value
 
value = instance.Orientation
C# 
public WiaOrientation Orientation {get; set;}
C++/CLI 
public:
property WiaOrientation Orientation {
   WiaOrientation get();
   void set (    WiaOrientation value);
}

Property Value

The original orientation of a page or image to be acquired. Possible values are (according to Microsoft SDK documentation):

WiaImageType.Portrait

0 degrees.

WiaImageType.Landscape

90-degree counter-clockwise rotation, relative to the Portrait orientation.

WiaImageType.Rotate180

180-degree counter-clockwise rotation, relative to the Portrait orientation.

WiaImageType.Rotate270

270-degree counter-clockwise rotation, relative to the Portrait orientation.

For more information about the orientation modes, please refer to the WIA_IPS_ORIENTATION property ID in Microsoft Windows SDK Documentation.

Example

Refer to WiaSession.GetRootItem example.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also