Previous Next

Color Management for Displays

GDI supports Image Color Management (ICM) version 2.0. Display drivers can use ICM without implementing any special code.

If the display hardware supports a gamma ramp, the display driver should implement DrvIcmSetDeviceGammaRamp. Color-calibrating applications that require color exactness use this capability. DirectDraw also uses this function to allow DirectX applications — such as a game that performs palette animation in RGB modes — to control the gamma ramp. For example code, refer to the permedia sample display drivers.