Leadtools.Forms.Ocr Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
RasterCodecsInstance Property
See Also 
Leadtools.Forms.Ocr Namespace > IOcrEngine Interface : RasterCodecsInstance Property



Gets the instance of the RasterCodecs object being used inside this IOcrEngine.

Syntax

Visual Basic (Declaration) 
Overridable ReadOnly Property RasterCodecsInstance As RasterCodecs
Visual Basic (Usage)Copy Code
Dim instance As IOcrEngine
Dim value As RasterCodecs
 
value = instance.RasterCodecsInstance
C# 
virtual RasterCodecs RasterCodecsInstance {get;}
C++/CLI 
virtual property RasterCodecs RasterCodecsInstance {
   RasterCodecs get();
}

Return Value

The RasterCodecs object being used inside this IOcrEngine.

Example

For an example, refer to Startup.

Remarks

You can pass an instance of an already initialized RasterCodecs object to the Startup method. This RasterCodecs objects will then be used internal by the engine when loading image files from disk or memory. Otherwise, when passing null (Nothing in Visual Basic), the IOcrEngine will create and use its own version of RasterCodecs during the startup procedure.

The internal RasterCodecs object will be disposed of by the engine automatically when Shutdown or Dispose is called. If you passed your own instance of RasterCodecs, then the engine will not dispose it and you can continue to use it as normal after the engine instance has been disposed. When passing your own instance of RasterCodecs, make sure this instance stays valid as long as the engine is started.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

RasterCodecsInstance requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features