SmartZone v8.0 - Updated
Accusoft.SmartZoneOCR.Net Assembly / Accusoft.SmartZoneOCRSdk Namespace / Reader Class / DetectOrient Method / DetectOrient(Stream) Method
The data stream containing an image.




In This Topic
    DetectOrient(Stream) Method
    In This Topic
    Detects the orientation of the given image represented by the stream.
    Syntax
    'Declaration
     
    
    Public Overloads Function DetectOrient( _
       ByVal imageStream As Stream _
    ) As OCROrientationMode
    'Usage
     
    
    Dim instance As Reader
    Dim imageStream As Stream
    Dim value As OCROrientationMode
     
    value = instance.DetectOrient(imageStream)
    public OCROrientationMode DetectOrient( 
       Stream imageStream
    )
    public: OCROrientationMode DetectOrient( 
       Stream* imageStream
    ) 
    public:
    OCROrientationMode DetectOrient( 
       Stream^ imageStream
    ) 

    Parameters

    imageStream
    The data stream containing an image.

    Return Value

    OCROrientationMode of the result.
    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.
    The stream cannot be null.
    Remarks

    The picture must be presented in one of the following formats:

    BMP, CLP, CUR, DIB, DNG, GIF, JPEG, PNG, TIFF

    The only first page of the multipage file will be used.

    See Also