Android - Correspondence between ImageView coordinates and Bitmap Pixels
- by Matteo
In my application I want the user to be able to select some content of an Image contained inside an ImageView.
To select the content I subclassed the ImageView class making it implement the OnTouchListener so to draw over it a rectangle with borders decided by the user.
Here is an example of the result of the drawing (to have an idea you can…