Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Drawing Pages and Zones (Deprecated)

This topic has been deprecated. Refer to Programming with Leadtools .NET OCR

LEADTOOLS provides methods for drawing pages, with or without zones. The zones may or may not be selected.

Before drawing a page, with or without its zones, that page must be set as "active" by calling ActivePage. Once the active page has been set, the page can be drawn by calling DrawPage. This method gives you the option of drawing the page with or without the zones.

A zone can be selected and the zone drawn in the HDC using SelectZone or SelectZoneByPoint. The SelectZone selects or deselects a zone by specifying a page index and a zone index. If the zone is selected, the zone is drawn with a "selection rectangle" around it. The pen used to draw the zones is set using the RasterDocumentDrawZoneOptions.Pen. The pen used to draw the selected zone is set using RasterDocumentDrawZoneOptions.SelectedPen.

The SelectZoneByPoint selects a zone by determining which zone on the page contains the specified point. If a zone containing that point is found, that zone is selected and the zone is redrawn with a "selection rectangle" around it. As with the SelectZone method, the pen used to draw the zones is set using the RasterDocumentDrawZoneOptions.Pen. The pen used to draw the selected zone is set using RasterDocumentDrawZoneOptions.SelectedPen.

To get information about the selected zone, call GetSelectedZoneData.

To update the area of a specific zone on a specific page, call UpdateZoneArea.

RemoveSelectedZone removes the selected zone from the zone list of the specified page.