ImageGear for C and C++ on Linux v20.0 - Updated
API Reference Guide > Core Component API Reference > Core Component Functions Reference > DIB Functions > IG_DIB_info_copy

This function makes a copy of a DIB info object.


Copy Code
        HIGDIBINFO hDIBSrc, 
        HIGDIBINFO* lphDIBDst 


Name Type Description
hDIBSrc HIGDIBINFO DIB info handle from which to copy.
lphDIBDst HIGDIBINFO* Pointer to where copied DIB info handle will be stored.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

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


Copy Code
AT_ERRCOUNT nErrcount;   /* Number of errors on stack */
HIGDIBINFO hDIBInfo;     /* Handle of DIB info to be copied */
HIGDIBINFO hDIBInfoCopy; /* Handle of DIB info copy */
HIGEAR hImage;           /* HIGEAR handle of image */
nErrcount = IG_image_DIB_info_get(hImage, &hDIBInfo);
nErrcount = IG_DIB_info_copy(hDIBInfo, &hDIBInfoCopy);


This function does not copy pixel data.

Is this page helpful?
Yes No
Thanks for your feedback.