ClearImage COM API
MeasureSkew Method
CiTools Object : MeasureSkew Method
Description
Measure image skew
Syntax
Visual Basic
Public Function MeasureSkew() As Double
Return Type
The returned value is in the range from -45 degrees to 45 degrees.   If the value is negative, the image is skewed counterclockwise.
Remarks

Measures image or zone skew relative to the nearest vertical or horizontal axis. 
rConfidence property contains confidence level in percents.

Example
Measure Skew and Rotation
Sub MeasureSkewRotation(imageFile As String)
      ' Open image file
  Dim Ci As New CiServer
  Dim Tools As CiTools: Set Tools = Ci.CreateTools
  Tools.Image.Open imageFile
      ' Do processing
  Dim skew As Double, rot As EPageRotation
  skew = Tools.MeasureSkew
  Debug.Print "Skew=" & skew & "   Confidence=" & Tools.rConfidence & "%" & vbCrLf
  rot = Tools.MeasureRotation
  Debug.Print "Rotation=" & _
     Switch(rot = ciRotUnknown, "Unknown", _
              rot = ciRotNone, "None", _
              rot = ciRotLeft, "TurnedLeft", _
              rot = ciRotRight, "TurnedRight", _
              rot = ciRotUpsideDown, "UpsideDown", _
              rot = ciRotLeftOrRight, "TurnedLeftOrRight", _
              rot = ciRotPortrait, "Portrait") & _
      "   Confidence=" & Tools.rConfidence & "%"
End Sub
See Also

CiTools Object  | CiTools Members  | MessureSkew  | MeasureRotation  | rConfidence