ImageGear Professional DLL v18.1 for Windows
IG_DIB_width_get
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > DIB Functions > IG_DIB_width_get

Glossary Item Box

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 Professional.

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);
©2014. Accusoft Corporation. All Rights Reserved.