You can do it on Windows using the GetDeviceGammaRamp() and SetDeviceGammaRamp() methods from Gdi32.lib. More here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/icm/icm_8ckw.asp
No idea how you might do it on Mac and Linux tho.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/icm/icm_8ckw.asp
No idea how you might do it on Mac and Linux tho.