title: How to Give a posterize effect on imageview?
body: <p>i am trying to give a Photoshop posterization effect to imageview.here is a normal image.</p>
  
  <p><img src="https://i.stack.imgur.com/z94pf.jpg" alt="enter image description here"></p>
  
  <p>after applying posterization effect it should look like this,this effect is taken from <a href="http://pixlr.com/editor/" rel="nofollow noreferrer">pixlr image editor</a></p>
  
  <p><img src="https://i.stack.imgur.com/ldwEi.jpg" alt="enter image description here"></p>
  
  <p>I want exact effect programmatically.</p>
  
  <p>what I have tried is, I am trying to get similar effect with SaturationFilter kind of effect, as I am not able to find posterization method for android.</p>
  
  <p>here is my function <a href="http://pastie.org/8007887" rel="nofollow noreferrer">http://pastie.org/8007887</a></p>
  
  <p>and resulting image is,as below which is not looking similar to Photoshop posterized effect, I have tried passing several saturation level,but no luck.i hope some one will guide me in a proper way.</p>
  
  <p><img src="https://i.stack.imgur.com/tx3Pe.jpg" alt="enter image description here"></p>
  
  <p>found some way, <a href="http://developer.android.com/reference/android/media/effect/EffectFactory.html" rel="nofollow noreferrer">http://developer.android.com/reference/android/media/effect/EffectFactory.html</a> here is a guidline for posterization effect,and that is applicable for android API level 14,what about device which use API level &lt;14?</p>