x must be < bitmap.width()
<p>I'm building an app that takes a picture, displays the picture and then once tapped, returns the color of the picture wherever it was tapped.</p>

<p>It gets as far as the tap before it crashes. I get the error that x must be &lt;  bitmap.width()</p>

<p>As far as my understanding goes, if I'm clicking within the bitmap and gaining the coordinate, how can it be greater than the bitmap.width()?</p>

<p>I'll post my code below and see if anyone can help me make sense of what I'm doing wrong.</p>

<p><a href="http://pastebin.com/scwiuM4w" rel="nofollow">http://pastebin.com/scwiuM4w</a></p>
