Hi list

i'm developing a small game and for that purpose i extended
SurfaceView and override the onDraw() method to draw Bitmap objects on
the x/y coordinates i like:

public void onDraw(Canvas canvas) {

                fCanvas = canvas;

                fCanvas.drawColor(Color.rgb(0, 0, 255));

                if (!pausing) {
                        GameObject[][] gameObjs = level.getLevel();

                        for (int x = 0; x < gameObjs.length; x++) {
                                for (int y = 0; y < gameObjs.length; y++) {
                                        if (gameObjs[x][y] != null) {
                                                gameObjs[x][y].drawObject();
                                        }
                                }
                        }
                }

here the drawObject() method

getCanvas().drawBitmap(getBitmapCache().get(bitmapRef), x, y, null);

this works great, but now i like to rotate or fade out the bitmap im
drawing. for this purpose i create an animation but the problem is,
there is no method Bitmap.startAnimation() or something like that. how
can i do this nevertheless? any hints??

thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to