public NativeOcrZoneFillMethod[] GetAdditionalNativeFillMethods()
public ArrayList<NativeOcrZoneFillMethod> getAdditionalNativeFillMethods()
array<NativeOcrZoneFillMethod>^ GetAdditionalNativeFillMethods();
def GetAdditionalNativeFillMethods(self):
An array of NativeOcrZoneFillMethod enumeration members that contain the additional fill methods supported by the IOcrEngine.
Used with engine-specific zones. For more information, refer to IOcrZoneManager.GetNativeZone and IOcrZoneManager.SetNativeZone.
The additional fill methods are values that are supported by this IOcrEngine but are not found on the system. You need to install additional fill method packs to be able to support these methods in your application. For more information, refer to Files to be Included with Your Application.
To get a list of all fill methods supported by the engine, use GetSupportedNativeFillMethods.
To determine whether a particular fill method is supported by the engine, use IsNativeFillMethodSupported.
Note: This method is not supported in the LEADTOOLS OCR Module - LEAD Engine. This method will always return an empty array.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Ocr;
using Leadtools.Forms.Common;
using Leadtools.Document.Writer;
using Leadtools.WinForms;
public void ZoneManagerExample()
{
// Create an instance of the engine
using (IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD))
{
// Start the engine using default parameters
ocrEngine.Startup(null, null, null, LEAD_VARS.OcrLEADRuntimeDir);
// Get the zone manager
IOcrZoneManager ocrZoneManager = ocrEngine.ZoneManager;
// Show all the zone types supported by this engine
Console.WriteLine("Hit enter to show the supported zone types");
//Console.ReadLine();
OcrZoneType[] zoneTypes = ocrZoneManager.GetSupportedZoneTypes();
Console.WriteLine("Supported zone types:");
Console.WriteLine("---------------------");
foreach (OcrZoneType zoneType in zoneTypes)
Console.WriteLine(" {0}", zoneType);
// Shutdown the engine
// Note: calling Dispose will also automatically shutdown the engine if it has been started
ocrEngine.Shutdown();
}
}
static class LEAD_VARS
{
public const string OcrLEADRuntimeDir = @"C:\LEADTOOLS22\Bin\Common\OcrLEADRuntime";
}
NativeOcrZoneRecognitionModule Enumeration
NativeOcrZoneFillMethod Enumeration
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document