ImageGear Professional DLL v17.1 for Windows Accusoft
IG_REC_image_info_get
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Recognition Image Preprocessing Functions > IG_REC_image_info_get

Glossary Item Box

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:

hImage Handle of the image.
pImgInfo 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

©2012. Accusoft Corporation. All Rights Reserved.