No.  Load it once and reuse it, otherwise you will suffer some nasty
performance.

On Dec 22, 10:35 am, nirm <nirmi...@gmail.com> wrote:
> Hello,
>
> I have a bitmap that i want it to rotate all the time.
> This bitmap is placed in a SurfaceView.
> My question is: Do i have to create the bitmap every time i want it to
> rotate?
>
> here is my code it is placed is the on draw method:
>
> leftMatrix.setRotate(degrees++, coords.getX()+bitmap.getWidth()/2,
> coords.getY());
>
>                 graphic.setBitmap(Bitmap.createBitmap(bitmap, 0, 0,
> bitmap.getWidth(), bitmap.getHeight(), leftMatrix, false));
> canvas.drawBitmap(bitmap, coords.getX(), coords.getY(), null);
>
> Kind Regards
> Nir

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

Reply via email to