DetectOrientationDegree property (ILEADRasterDocument)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

long DetectOrientationDegree(short iPageIndex)

Overview

Refer to Working with Pages

Remarks

(Read only) This property is updated with the angle by which the specified page needs to be oriented. If the specified page does not need to be oriented this property is updated with 0.

Possible values for this property are: 0, 90, 180 and 270 degrees.

The purpose of orientation is to make the page more readable during recognition by making sure the top of the page is positioned properly. That is, a page that is oriented correctly like this:

image\orientpage1.gif

is much more readable than the same page oriented like this:

image\orientpage2.gif

To orient the page automatically, call the AutoOrientPage method.

See Also

Elements:

AddPage method, PageCount property, RemovePage method, ExportPage method, UpdatePage method, AutoOrientPage method, CleanupPages method

Topics:

Quick Reference OCR: Working with Pages