ImageGear for C and C++ on Windows v19.9 - Updated
IG_REC_image_info_get
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Recognition Image Preprocessing Functions > IG_REC_image_info_get

Gets information about any image in the recognition engine. This includes dimensions, resolution, color space, bit depth, and channel information of the specified image.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_image_info_get(
   HIG_REC_IMAGE hImage,
   HIGDIBINFO* pImgInfo
);

Arguments:

Name Type Description
hImage HIG_REC_IMAGE Handle of the image.
pImgInfo HIGDIBINFO* Address of an HIGDIBINFO handle to get the image information. Function IG_DIB_info_delete(pImgInfo); must be called if pImgInfo is no longer needed.

Return Value:

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

Supported Raster Image Formats:

This function does not process image pixels.

Example:

 
Copy Code
AT_ERRCOUNT ErrCount = 0;
HIGEAR higImage = 0;
HIG_REC_IMAGE higRecImage = 0;
HIGDIBINFO ImgInfo = 0;

ErrCount += IG_load_file("Image.tif", &higImage); 
ErrCount += IG_REC_image_import(higImage, &higRecImage);
ErrCount += IG_REC_image_info_get(higRecImage, &ImgInfo);

//...

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

See Also

HIG_REC_IMAGE