Hello, I'm trying to find a way to darken an image that can later have certain spots undarkened.

I have tried by simply drawing a semi-translucent rectangle over the image, but I cannot figure out how to relighten a selected spot. Any help on this would be great.

Hello, I'm trying to find a way to darken an image that can later have certain spots undarkened.

I have tried by simply drawing a semi-translucent rectangle over the image, but I cannot figure out how to relighten a selected spot. Any help on this would be great.

Refer this link

http://www.dreamincode.net/code/snippet2063.htm