ClearImage COM Server
AutoRotate Method
See Also  Example  Send Feedback
CiRepair Object : AutoRotate Method

Description

Automatically rotate image

Syntax

Visual Basic
Public Function AutoRotate() As EPageRotation

Return Type

If image contains sufficient textual elements, then ciRotNone, ciRotUpsideDown, ciRotLeft, and ciRotRight values are set.   If image contains mostly graphical objects, such as lines, then the return values are ciRotPortrait and ciRotLeftOrRight.

Remarks

It is recommended to AutoDeskew prior to AutoRotate.

If image contains enough of textual elements AutoRotate sets image in the position with text lines running horizontally and readable from left to right .  If image contains mostly graphical objects, like lines, AutoRotate sets image in the position with the most lines running horizontally.

The Parent of zone object is autorotated based on image data inside the zone.

Example

VB Example (Visual Basic)Copy Code
Public Sub T_AutoRotate(ByRef Rep As CiRepair)
  Rep.AutoRotate
End Sub

See Also

© 1992-2011. Inlite Research, Inc. All Rights Reserved.