I have a simple question that makes me think for several hours.
Suppose a canvas that rotates to a certain (known) degree. I want to get the screen coordinates of a bitmap that I drew on a rotated canvas. To achieve this, I need a clip framework. This is not a problem for a non-rotating canvas. But he continues to give me strange meanings for the turned event. Honestly, I'm not sure if they are designed for a rotating canvas, as the top and bottom cannot be simple. Integer values representing the distance from the currently viewed part along the Y axis to the top and bottom of the canvas. The same goes for left and right. So what do these values mean to me and how can I use them to get the screen coordinates?
Finding the Android source did not help, as they use the native_getClipBounds () method, which I could not find anywhere ...
source
share