A method and a storage medium for auto exposure control are provided. A
desired image is divided into a plurality of sample blocks, each includes
red, green, and blue subpixels. A maximum exposure ratio and an average
exposure ratio are obtained according to the maximum and average values
of each red, green, and blue subpixel retrieved from each sample block
and a predetermined desired maximum brightness and a predetermined
desired average brightness. It is determined whether the maximum exposure
ratio is smaller than the average exposure ratio. If it is, a strobe of
the storage medium shines a flashlight based on the average exposure
ratio, and, if it is not, the strobe shines a flashlight based on the
maximum exposure ratio.