Change Gamma Ramp
-
Does anybody have sample code in C++ to change the gamma ramp. I want to set the colours, contrast and brightness of an LCD panel. Similar with: http://www.majorgeeks.com/Gamma\_Panel\_d2796.html Regards.
-
Does anybody have sample code in C++ to change the gamma ramp. I want to set the colours, contrast and brightness of an LCD panel. Similar with: http://www.majorgeeks.com/Gamma\_Panel\_d2796.html Regards.
gamma adjustment is a simple mapping:
double fGammaInverse = 1.0 / gamma;
for each pixel
for each color component
pixVal = (BYTE) (256 * pow ((double)pixVal / 256.0, fGammaInverse)); -
gamma adjustment is a simple mapping:
double fGammaInverse = 1.0 / gamma;
for each pixel
for each color component
pixVal = (BYTE) (256 * pow ((double)pixVal / 256.0, fGammaInverse));Thank you for your answer. I've saw the example on NirSoft web site http://www.nirsoft.net/vc/change\_screen\_brightness.html where I can make the screen brighter or darker but how can increase or decrease the intensity of the red/green/blue components? For example: How can to increase only the blue component in all RGB values to add more blue color to the entire display? Robert.