ImageGear .NET v24.12 - Updated
TextAutoOrientation Method
Example 




ImageGear24.Processing.Advanced Assembly > ImageGear.Processing.ImageClean Namespace > ImGearIC Class : TextAutoOrientation Method
1-bit ImGearPage object to apply the method to.
Specifies type of the input document's alignment.
Detects orientation of the page and auto-rotates it.
Syntax
'Declaration
 
Public Shared Sub TextAutoOrientation( _
   ByVal page As ImGearPage, _
   ByVal documentType As ImGearICDocumentType _
) 
'Usage
 
Dim page As ImGearPage
Dim documentType As ImGearICDocumentType
 
ImGearIC.TextAutoOrientation(page, documentType)
public static void TextAutoOrientation( 
   ImGearPage page,
   ImGearICDocumentType documentType
)
public: static void TextAutoOrientation( 
   ImGearPage* page,
   ImGearICDocumentType documentType
) 
public:
static void TextAutoOrientation( 
   ImGearPage^ page,
   ImGearICDocumentType documentType
) 

Parameters

page
1-bit ImGearPage object to apply the method to.
documentType
Specifies type of the input document's alignment.
Remarks
Takes 1-bit ImGearPage and the input document's alignment, which is either standard, left aligned or right aligned, and automatically determines what the proper orientation should be and rotates the page to achieve that proper orientation.
Example
// Auto Orientate an image of a left-aligned document.
ImGearIC.TextAutoOrientation(igPage, ImGearICDocumentType.LEFT_ALIGNED);
' Auto Orientate an image of a left-aligned document.
ImGearIC.TextAutoOrientation(igPage, ImGearICDocumentType.LEFT_ALIGNED)
See Also

Reference

ImGearIC Class
ImGearIC Members
ImGearICDocumentType Enumeration
ImGearPage Class