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

Converts color temperature structure to XY coordinates of the corresponding white point.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_color_temperature_convert_to_xy(
        const AT_COLOR_TEMPERATURE* lpColorTemperature
        AT_DPOINT* lpWhiteXY,
);

Arguments:

Name Type Description
lpColorTemperature const AT_COLOR_TEMPERATURE* Color temperature structure.
lpWhiteXY AT_DPOINT* Coordinates of a white point to be calculated.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

Setting a greater temperature for an image results in more yellow color; lower temperature results in more blue color. Useful range for Temperature is between 2000 and 10000.

Setting a greater tint value for an image results in a more magenta color; lower tint values result in greener color. Useful range for Tint is between -50 and 50.