ImageGear v26.5 - Updated
ImageGear.Core 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.
Example




In This Topic
    TextAutoOrientation Method
    In This Topic
    Detects orientation of the page based on the page text 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