title: Replace particular color of image in iOS
body: <p>I want to replace the particular color of an image with other user selected color. While replacing color of image, I want to maintain the gradient effect of that original color. for example see the attached images.
  <a href="https://dl.dropbox.com/u/100176839/image1.png" rel="noreferrer"><img src="https://dl.dropbox.com/u/100176839/image1.png" alt="image1.png"></a><br>
  <a href="https://dl.dropbox.com/u/100176839/image2.png" rel="noreferrer"><img src="https://dl.dropbox.com/u/100176839/image2.png" alt="image2.png"></a></p>
  
  <p>I have tried to do so with CoreGraphics &amp; I got success to replace color. But the replacing color do not maintain the gradient effect of the original color in the image.</p>
  
  <p>Can someone help me on this? Is the CoreGraphics is right way to do this?
  Thanks in advance.</p>