title: How to find pixels color in particular coordinate in images?
body: <p>I have one activity, my activity contains one ImageView.I have implemented OnTouchListener for ImageView.Here I want find pixels color where i touch in image.Please let me know how to find pixels color.I have one ideas,</p>
  
  <p>-->In ImageView where i touch just find X and Y coordinate and find pixels in same X and Y   coordinate and find pixels color.Please let me is it possible.</p>
  
  <p>Please  give any suggestion or document for to do this please.  </p>
  
  <p>with ur reference i wrote code for bitmap,</p>
  
  <pre><code>int mId=R.drawable.with_colors;
  Bitmap bitmap = BitmapFactory.decodeResource(getResources(), mId);
  bitmap = bitmap.copy(Bitmap.Config.ARGB_8888, true);  
  </code></pre>
  
  <p>In onTouch</p>
  
  <pre><code>int x=(int) event.getX();
  int y=(int) event.getY();
  int color=bitmap.getPixel(x, y);
  Log.d("colors","---"+color);
  </code></pre>
  
  <p>But here Log printing "Colors---0".</p>