The OMR options.
Syntax
Return Value
The OMR options.
Example
Visual Basic | Copy Code |
---|
Public Sub OmrOptionsPropertyExample()
RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")
Dim rasterDocument As RasterDocumentEngine
rasterDocument = RasterDocumentEngine.Instance
rasterDocument.Startup()
Dim omr As RasterDocumentOmrOptions = New Leadtools.Document.RasterDocumentOmrOptions()
omr = rasterDocument.OmrOptions
If omr.EnableFill = False Then
omr.EnableFill = True
End If
If omr.Frame <> RasterDocumentOmrFrame.Yes Then
omr.Frame = RasterDocumentOmrFrame.Yes
End If
If omr.Sense <> RasterDocumentOmrSense.Normal Then
omr.Sense = RasterDocumentOmrSense.Normal
End If
rasterDocument.OmrOptions = omr
rasterDocument.Shutdown()
End Sub |
C# | Copy Code |
---|
public void OmrOptionsPropertyExample() { // 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(); RasterDocumentOmrOptions omr = new RasterDocumentOmrOptions(); omr = rasterDocument.OmrOptions; if (omr.EnableFill == false) omr.EnableFill = true; if (omr.Frame != RasterDocumentOmrFrame.Yes) omr.Frame = RasterDocumentOmrFrame.Yes; if (omr.Sense != RasterDocumentOmrSense.Normal) omr.Sense = RasterDocumentOmrSense.Normal; rasterDocument.OmrOptions = omr; rasterDocument.Shutdown(); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also