ImageGear Professional DLL v18.1 for Windows
IG_REC_zone_info_get
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Zone Support Functions > IG_REC_zone_info_get

Glossary Item Box

Gets information about any zone in the zone list of the hImage image.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_zone_info_get(
   HIG_REC_IMAGE hImage,
   AT_INT nIndex,
   LPAT_REC_ZONE lpZoneInfo
);

Arguments:

Name Type Description
hImage HIG_REC_IMAGE Handle of the image.
nIndex AT_INT Index of the zone in the zone list whose information is requested.
lpZoneInfo LPAT_REC_ZONE Pointer to a variable for storing the requested zone information.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

See IG_REC_image_import.

Example:

  Copy Code
AT_ERRCOUNT ErrCount = 0;
HIG_REC_IMAGE higRecImage = 0;
HIGEAR higImage = 0;
AT_INT iZoneCount = 0;
AT_REC_ZONE rzInfo;
AT_INT iZoneIndex = 0;

ErrCount += IG_load_file("Multipage.tif", &higImage); 
ErrCount += IG_REC_image_import(higImage, &higRecImage);
ErrCount += IG_REC_zones_locate(higRecImage, NULL);
ErrCount += IG_REC_zones_count_get(higRecImage, &iZoneCount);

for(iZoneIndex = 0; iZoneIndex < iZoneCount; iZoneIndex++)
{
    ErrCount += IG_REC_zone_info_get(higRecImage, iZoneIndex, &rzInfo);
    //...
}

ErrCount += IG_REC_image_delete(higRecImage);
ErrCount += IG_image_delete(higImage);

See Also

HIG_REC_IMAGE

©2014. Accusoft Corporation. All Rights Reserved.