ImageGear for C and C++ on Windows v19.6 - Updated
IG_DIB_width_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > DIB Functions > IG_DIB_width_get

This function returns the width of the image.

Declaration:

 
Copy Code
AT_DIMENSION ACCUAPI IG_DIB_width_get(
        HIGDIBINFO hDIB
);

Arguments:

Name Type Description
hDIB HIGDIBINFO DIB info handle.

Return Value:

Width of the image.

Supported Raster Image Formats:

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

Sample:

Annotation, Filters, Load Callback, MFC PDF Demo

Example:

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