LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GetZoneBoundsInPixels Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrPage Interface : GetZoneBoundsInPixels Method



zoneIndex
The zero-based index of the zone.

The GetZoneBoundsInPixels Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

zoneIndex
The zero-based index of the zone.
Gets the bounding rectangle of a zone in pixels

Syntax

Visual Basic (Declaration) 
Function GetZoneBoundsInPixels( _
   ByVal zoneIndex As Integer _
) As LeadRect
Visual Basic (Usage)Copy Code
Dim instance As IOcrPage
Dim zoneIndex As Integer
Dim value As LeadRect
 
value = instance.GetZoneBoundsInPixels(zoneIndex)
C# 
LeadRect GetZoneBoundsInPixels( 
   int zoneIndex
)
C++/CLI 
LeadRect GetZoneBoundsInPixels( 
   int zoneIndex
) 

Parameters

zoneIndex
The zero-based index of the zone.

Return Value

A Leadtools.LeadRect object that contains the zone bounding rectangle in pixels.

Example

For an example, refer to HitTestZone.

Remarks

This method returns the zone bounding rectangle in pixels based on the zone's OcrZone.Bounds value and this image DPI (DpiX and DpiY). The rectangle value returned is always in top-left coordinates.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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