The specification and drawings present a new method, apparatus and
software product for using a flash light with, e.g., light-emitting
diodes (LEDs) or other light sources of a camera of an electronic device
for improving quality of images provided by the camera. The flash related
parameters comprising a white balance setting and/or exposure settings
can be determined using, e.g., an ambient light level and an estimate of
the flash light reflected from said object.