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

Glossary Item Box

Loads the zone list from a zone file and attaches the zone list to the hImage image.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_zones_load(
   HIG_REC_IMAGE hImage,
   const LPSTR lpFileName
);

Arguments:

Name Type Description
hImage HIG_REC_IMAGE Handle of the image.
lpFileName const LPSTR Name of the zone file to be loaded.

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;
HIGEAR higImage = 0;
HIG_REC_IMAGE higRecImage = 0;

ErrCount += IG_load_file("Image.tif", &higImage); 
ErrCount += IG_REC_image_import(higImage, &higRecImage);
ErrCount += IG_REC_image_recognize(higRecImage);
ErrCount += IG_REC_zones_save(higRecImage, "zones_file.zf");

//...

ErrCount += IG_REC_zones_load(higRecImage, "zones_file.zf");

//...

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

Remarks:

Calling this function removes any zone list already attached to the hImage image.

See Also

HIG_REC_IMAGE

©2014. Accusoft Corporation. All Rights Reserved.