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)
  2.  
Parsed in 0.033 seconds, using GeSHi 1.0.8.4


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

Top

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

Who is online

Users browsing this forum: No registered users and 1 guest