As I mentioned above, the brightness L of a pixel can be ideally described by the formula: L = B + x*C, where B is a value proportional to the Brightness setting of the monitor, C is a value proportional to the Contrast setting of the monitor and x is the signal the monitor receives from the computer (x=0 for black color and x=maximum for white color).