Possible Duplicate:
How can I get the average colour of an image
Say I'm making an application where a bitmap would be applied over user's photo. For the applied bitmap to look realistic, it had to have similar hue / saturation as in the user's photo.
So I wanted to ask, is there a way to get an average hue/sat or some other mean of color from the user photo? To use it as a coefficient to adjust hue/sat of the applied bitmap.
THanks.