Gets the zero-based index of the zone under a certain point.
int HitTestZone(
Leadtools.LeadPoint point
)
Function HitTestZone( _
ByVal point As Leadtools.LeadPoint _
) As Integer
int HitTestZone(
Leadtools.LeadPoint point
)
function Leadtools.Forms.Ocr.IOcrPage.HitTestZone(
point
)
int HitTestZone(
Leadtools.LeadPoint point
)
point
The test point in pixels.
The zero-based index of the zone under point, if no zone is under the test point, this method will return -1.
You can use this method to check whether a zone (either added manually or automatically) is under a given test point. For example, if you have a Windows Forms based application with the current IOcrPage in a ImageViewer control. You might want to draw the zones on the surface of the viewer. For this, you can use the GetZoneBoundsInPixels methods. If you want to allow the user to click with the mouse on the viewer to select and de-select zones, you can use HitTestZone.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET