Finds the degree of orientation for the specified page.
Syntax
Parameters
- pageIndex
- Page index. This index is zero-based.
Example
Visual Basic | Copy Code |
---|
Public Sub GetOrientationDegreeExample()
RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")
Dim rasterDocument As RasterDocumentEngine
rasterDocument = RasterDocumentEngine.Instance
rasterDocument.Startup()
Dim degree As Integer = rasterDocument.GetOrientationDegree(0)
Dim msg As String = String.Format("Orientation degree = {0}", degree)
MessageBox.Show(msg)
rasterDocument.Shutdown()
End Sub |
C# | Copy Code |
---|
public void GetOrientationDegreeExample() { // Note that this is a sample key, which will not work in your toolkit RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey"); RasterDocumentEngine rasterDocument; rasterDocument = RasterDocumentEngine.Instance; rasterDocument.Startup(); // assume page is added, refer to AddPage example for more information int degree = rasterDocument.GetOrientationDegree(0); string msg = String.Format("Orientation degree = {0}", degree); MessageBox.Show(msg); rasterDocument.Shutdown(); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also