←Select platform

GetAdditionalNativeFillMethods Method

Summary
Gets an array of additional fill methods supported by the IOcrEngine.
Syntax
C#
C++/CLI
Java
Python
public NativeOcrZoneFillMethod[] GetAdditionalNativeFillMethods() 
public ArrayList<NativeOcrZoneFillMethod> getAdditionalNativeFillMethods() 
array<NativeOcrZoneFillMethod>^ GetAdditionalNativeFillMethods();  
def GetAdditionalNativeFillMethods(self): 

Return Value

An array of NativeOcrZoneFillMethod enumeration members that contain the additional fill methods supported by the IOcrEngine.

Remarks

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.

Example
C#
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"; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ocr Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.