Auto orients the specified page.
Syntax
Visual Basic (Declaration) | |
---|
Public Sub AutoOrientPage( _
ByVal pageIndex As Integer _
) |
Managed Extensions for C++ | |
---|
public: void AutoOrientPage(
int pageIndex
) |
Parameters
- pageIndex
- Page index. This index is zero-based.
Example
Visual Basic | Copy Code |
---|
Public Sub AutoOrientPageExample()
RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")
Dim rasterDocument As RasterDocumentEngine
rasterDocument = RasterDocumentEngine.Instance
rasterDocument.Startup()
Try
rasterDocument.AutoOrientPage(0)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
rasterDocument.Shutdown()
End Sub |
C# | Copy Code |
---|
public void AutoOrientPageExample() { // Note that this is a sample key, which will not work in your toolkit RasterSupport.Unlock(RasterSupportType.Ocr, "TestKey"); RasterDocumentEngine rasterDocument; rasterDocument = RasterDocumentEngine.Instance; rasterDocument.Startup(); // assume page is added, refer to AddPage example for more information try { rasterDocument.AutoOrientPage(0); } catch (Exception ex) { MessageBox.Show(ex.Message); } rasterDocument.Shutdown(); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also