Leadtools.Wia Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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);
}

Return 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 3.0, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family

See Also