ImageGear for C and C++ on Linux v19.10 - Updated
IG_DIB_info_copy
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.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_DIB_info_copy(
        HIGDIBINFO hDIBSrc, 
        HIGDIBINFO* lphDIBDst 
);

Arguments:

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

Example:

 
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);

Remarks:

This function does not copy pixel data.