←Select platform

SaveZones(Stream,OcrWriteXmlOptions) Method

Summary

Saves zones to a multi-page zones .NET stream with XML options.

Syntax

C#
VB
Objective-C
WinRT C#
C++
public void SaveZones( 
   Stream stream, 
   OcrWriteXmlOptions xmlOptions 
) 
Overloads Sub SaveZones( _ 
   ByVal stream As Stream, _ 
   ByVal xmlOptions As Leadtools.Forms.Ocr.OcrWriteXmlOptions _ 
)  
- (void)saveZonesToStream:(LTLeadStream *)stream  
          xmlWriteOptions:(nullable LTOcrWriteXmlOptions *)xmlWriteOptions  
                    error:(NSError **)error 
             
function Leadtools.Forms.Ocr.IOcrDocument.SaveZones(Stream,OcrWriteXmlOptions)(  
   stream , 
   xmlOptions  
) 

Parameters

stream
The .NET stream that will contain the zones data.

xmlOptions
Options to use when writing the XML data.

Remarks

To save and load the zones of OCR pages, you can use one of these methods:

Note on loading zones from a multi-page zone stream: If the stream does not contain zones data with the correct page number, the engine will not load any zones for this page. After the method returns, any OCR page that did not have zones data will contain zero zones. (the IOcrPage.Zones property contains 0 items). You can then use IOcrPage.AutoZone if required to re-zone this page.

Use IOcrDocument.LoadZones(stream) or IOcrPage.LoadZones(stream, pageNumber) to load all or one page zones saved by this method.

To load and save the zones to a disk file, use IOcrDocument.SaveZones(filename), IOcrDocument.LoadZones(filename) and IOcrPage.LoadZones(fileName, pageNumber).

Example

For an example, refer to IOcrDocument.SaveZones(filename).

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Ocr Assembly