• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps rotating/flipping a bitmap in surfaceView

sump38

Lurker
Hi guys,
so i'm trying to build a class that will take a sprite sheet (image with multiple frames in it) and render it as an animation, using a SurfaceView canvas.

by now, i finished implementing using the function

Code:
canvas.drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint)


this takes the part of the bitmap assined by the src Rectangle and draws it according to the dst Rectangle.

this gave me exatly what i needed until i wanted to rotate/flip the frame.

does anyone have any idea as to how this should be done?
 
Back
Top Bottom