title: Generating Color schemes from an image
body: <p>Im wondering how to generate color schemes from an image in iOS. I surfed and found some related links where I can get average color from an image from <a href="https://stackoverflow.com/questions/5562095/average-color-value-of-uiimage-in-objective-c/5562246#5562246">here</a> and also could get the exact color values from the point touched from an image from <a href="https://stackoverflow.com/questions/144250/how-to-get-the-rgb-values-for-a-pixel-on-an-image-on-the-iphone">here</a> and <a href="https://stackoverflow.com/a/1285690/1424174">here</a> But I couldn't get how I can get color schemes(altleast 10 colors) from that image. </p>
  
  <p>First, I divided the given image into nine parts and processed each to get the dominant color of that particular part. It worked, but as the code in <a href="https://stackoverflow.com/questions/5562095/average-color-value-of-uiimage-in-objective-c/5562246#5562246">the link</a> gets only the average color, which seems to be muddy. </p>
  
  <p>So, I want it to be true colors from the image. This is my need. Can someone point me how to get the exact color schemes from the given image? </p>