android - What does Canvas.getClipBounds() return if the canvas is rotated? -


I have a simple question that keeps me thinking for a few hours.

Understand a canvas that rotates with a specific (known) degree. I want to get the screen map of the bitmap drawn on the rotated canvas To achieve this, I want the bandwidth of the canvas to be non- This will not be a problem for the canvas rotated but it gives me a weird price for a rotated case. To be honest, I'm not really sure, that should be for the rotated canvas, because the top and bottom can not be equal, the integer value reflects the distance of the currently visible part on the Y-axis and below the canvas . If the same applies to left and right, then what do I mean by these values ​​and how can I use them to get screen coordinates?

Did not help view the Android source, because they are using a native_gateblip bounce () method, which I could not find anywhere ...

There really is no answer, but it was changing for a very long time, a comment.

You say that you know the angle why you did not forget the bitmap on the paper and calculate the coordinates of the rotated bitmap corners and find the boundary of the bounded box of rotated bitmap (red rectangle) And see if any of those (if any) you agree with those numbers are coming from canvas.gateclippage () .

alt text


Comments