Rotate and scale bitmap animation problem

Problems with Canvas, OpenGL, etc...

Rotate and scale bitmap animation problem

Postby briantsim » Thu Jan 20, 2011 10:09 am

i tried rotate and scale my image in thread, the image only scale my bitmap. how to rotate and scale my bitmap?

Code: Select all

matrix.setRotate(rotation,smokeBitmap.getWidth()/2,smokeBitmap.getHeight()/2);
matrix.setScale(size/smokeBitmap.getWidth(),size/smokeBitmap.getHeight(),smokeBitmap.getWidth()/2,smokeBitmap.getHeight()/2);

briantsim
Freshman
Freshman
 
Posts: 7
Joined: Thu Dec 02, 2010 7:49 am

Top

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

Who is online

Users browsing this forum: No registered users and 4 guests