1. A method for controlling a display controller to enhance an image displayed on a display that is controlled by the display controller and illuminated by a lighting device, the image comprising a plurality of pixels, each pixel having an individually adjustable property, the display comprising a transmittance level for each pixel of the image, the method comprising: storing a mapping function in a non-transitory machine readable storage medium of the display controller, wherein the mapping function includes a linearly decreasing mapping portion, a non-linear mapping portion, and a constant portion; determining an illumination level of the lighting device for each pixel; determining, by use of the mapping function and the illumination level, a respective compensation factor for each pixel, including using the linearly decreasing mapping portion to determine the compensation factor when the illumination level is below a first threshold, using the non-linear mapping portion to determine the compensation factor when the illumination level is above the first threshold and below a second threshold; and using the constant portion to determine the compensation factor when the illumination level is above the second threshold; adjusting the property of each pixel by the compensation factor of the respective pixel; and adjusting the transmittance level of the display for each pixel by the adjusted property of the respective pixel.