LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)
LEAD Technologies, Inc

SaveZones(Stream) Method






The .NET stream that will contain the zones data.
Saves zones to a multi-page zones .NET stream. .NET support
Syntax
void SaveZones( 
   Stream stream
)
'Declaration
 
Overloads Sub SaveZones( _
   ByVal stream As Stream _
) 
'Usage
 
Dim instance As IOcrDocument
Dim stream As Stream
 
instance.SaveZones(stream)
void SaveZones( 
   Stream stream
)
function Leadtools.Forms.Ocr.IOcrDocument.SaveZones(Stream)( 
   stream 
)
void SaveZones( 
   Stream^ stream
) 

Parameters

stream
The .NET stream that will contain the zones 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 conatins 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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IOcrDocument Interface
IOcrDocument Members
Overload List
IOcrPage.LoadZones(fileName)
IOcrPage.LoadZones(fileName, pageNumber)
IOcrDocument.LoadZones(fileName)
IOcrPage.LoadZones(Stream)
IOcrPage.LoadZones(Stream, pageNumber)
IOcrDocument.LoadZones(Stream)
IOcrPage.SaveZones(fileName)
IOcrPage.SaveZones(stream)
IOcrDocument.SaveZones(fileName)
IOcrPageCollection Interface
IOcrZoneCollection Interface
OcrZone Structure
IOcrPage.Recognize
Programming with the LEADTOOLS .NET OCR

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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