How to get an average hue / saturation of a bitmap?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12408431/how-can-i-get-the-average-colour-of-an-image">How can I get the average colour of an image</a>  </p>
</blockquote>



<p>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.</p>

<p>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.</p>

<p>THanks.</p>
