SmartZone v8.0 - Updated
Accusoft.SmartZoneOCR.Net Assembly / Accusoft.SmartZoneOCRSdk Namespace / Reader Class / DetectOrient Method / DetectOrient(IntPtr) Method
The HBitmap or HDib to detect orientation




In This Topic
    DetectOrient(IntPtr) Method
    In This Topic
    Detects the orientation of the given image represented by an unmanaged pointer to a GDI object.
    Syntax
    'Declaration
     
    
    Public Overloads Function DetectOrient( _
       ByVal handle As IntPtr _
    ) As OCROrientationMode
    'Usage
     
    
    Dim instance As Reader
    Dim handle As IntPtr
    Dim value As OCROrientationMode
     
    value = instance.DetectOrient(handle)
    public OCROrientationMode DetectOrient( 
       IntPtr handle
    )
    public: OCROrientationMode DetectOrient( 
       IntPtr handle
    ) 
    public:
    OCROrientationMode DetectOrient( 
       IntPtr handle
    ) 

    Parameters

    handle
    The HBitmap or HDib to detect orientation

    Return Value

    OCROrientationMode from detection
    Exceptions
    ExceptionDescription
    Supported bit depths are 1-, 8-, 24- and 32-bits per pixel.
    The image data cannot be read for format reasons other than an unsupported bit depth.
    An invalid license is being used.
    An area coordinate is outside the current image.
    Input parameter cannot be null.
    See Also