ImageGear for C and C++ on Linux v18.8 - Updated
IG_DIB_height_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > DIB Functions > IG_DIB_height_get

This function returns the height of the image.

Declaration:

 
Copy Code
AT_DIMENSION ACCUAPI IG_DIB_height_get(
        HIGDIBINFO hDIB
);

Arguments:

Name Type Description
hDIB HIGDIBINFO DIB info handle.

Return Value:

Returns image height.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Example:

 
Copy Code
AT_ERRCOUNT nErrcount;  /* Number of errors on stack */
HIGDIBINFO hDIBInfo;    /* DIB info handle */
HIGEAR hImage;          /* HIGEAR handle of image */
AT_DIMENSION height;    /* Returned height of image */
nErrcount = IG_image_DIB_info_get(hImage, &hDIBInfo);
height = IG_DIB_height_get(hDIBInfo);