ImageGear for C and C++ on Windows v19.10 - Updated
IG_colorbookcolor_create
API Reference Guide > Core Component API Reference > Core Component Functions Reference > ColorBook Color Functions > IG_colorbookcolor_create

This function creates new ColorBook Color object.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_colorbookcolor_create(
        LPCHAR lpName,
        AT_QWORD nColorID,
        HIGPIXEL lphPixel,
        enumIGColorSpaceIDs colorSpace,
        HIGCOLORBOOKCOLOR* lphColorBookColor
);

Arguments:

Name Type Description
lpName LPCHAR Name of new ColorBook Color.
nColorID AT_QWORD Color ID of new ColorBook Color.
lphPixel HIGPIXEL Color value of new ColorBook Color.
colorSpace enumIGColorSpaceIDs Color space of new ColorBook Color.
lphColorBookColor HIGCOLORBOOKCOLOR* Created ColorBook Color.

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:

RGB – 24 bpp;
CMYK – 32 bpp;
Lab – 24 bpp.