ImageGear Professional v18.2 > User Guide > Using ImageGear > Working with Digital Camera RAW formats > Reconstructing Camera Raw Images with Image Processing API > Colorspace Conversion |
In order to use a custom white balance for an image, set the "APPLY_COLORSPACE_CONVERSION" control parameter of format filter to False. Use the IGProcessingCtl Control.CalculateCameraToSRGBMatrix Method to calculate a conversion matrix, based on selected white balance and on known conversion matrices obtained from metadata. Use IGProcessingCtl Control.ConvertToColorSpaceWithMatrix Method to convert the image to the linear sRGB color space.
Use the IGColorTemperature Object to operate with color temperature and white balance settings.
The APPLY_COLORSPACE_CONVERSION parameter only has effect if the RECONSTRUCT_COLORS parameter is True.