Rotating a bitmap

wardvs1

New Member
Hello everybody,

I’m currently working on a project with quite a lot of graphical element, and I stumbled upon a problem.
I have an image, and I want it to automatically rotated in the direction you touch the screen. Also, when you drag your finger over the screen, I want the images to rotate in the direction of your finger. This means the image would have to updated 24 times a second. I tried to do this whit a matrix, but this didn’t seem to work properly: the image became very blurry after each rotation, and it took up a lot of memory. Now, is there a way to rotate an image at high frequency without losing quality or memory (soo without altering the bitmap itself)? I don’t have any problem figuring out the degrees of the rotation, but rather what method I should use to rotate the image itself.

All suggestions are welcome. Thanks in advance.
Ps. I’m working with a SurfaceView.
 
Top