mirror Bitmaps in a surfaceview implementation

Problems with Canvas, OpenGL, etc...

mirror Bitmaps in a surfaceview implementation

Postby sump38 » Mon Jun 27, 2011 2:35 pm

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
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. canvas.drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint)
Parsed in 0.012 seconds, using GeSHi

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?
Posts: 2
Joined: Mon Jun 13, 2011 10:13 pm


Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 3 guests