title: Detecting a color in a BitMap by touch
body: <p>Is it possible to detect on color <code>touch</code> with <code>Bitmap</code> on 'Android'?</p>
  
  <p>The screen will look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/4akdj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4akdj.png" alt="enter image description here"></a></p>
  
  <p>The <code>black arrow</code> is the <code>Bitmap</code> object that user can move up and down. It should detect when black arrow is touching the blue line and add points for each <code>second</code> that it has touched the line. </p>
  
  <p>Maybe it is worth noting that arrow can be only moved up and down and the blue lines are what are moving from right to left.</p>
  
  <p>There is a wierd background and the background may contain blue since it will be a camera preview screen and the <code>Canvas</code> where the arrow and the blue line are moving will be transparent. Will that be an issue or is there maybe a better way to detect collision?</p>
  
  <p>The most important part that I need here is to detect 'collision' or weather the bitmap and the line are touching or not but the second part of the question would be, is there a way to add an animation or something that would show the user that the lines are touching, maybe chaing the arrow for a golden one or something.</p>
  
  <p>The line is made with 'GraphView' and thus I can not really treat that as an 'object'. More about graphview - <a href="http://www.android-graphview.org/" rel="nofollow noreferrer">http://www.android-graphview.org/</a></p>
  
  <p>If there is any need for source code then I can provide that but I'd rather not share it right off the bat.</p>
  
  <p><strong>EDIT</strong> I have tried using Pixels and detecting color that way but I have not gotten it to work.</p>