OK, Thats my question how do i reuse it?
Can you provide me an example?

Thanks
Nir

On Dec 22, 9:05 pm, Robert Green <[email protected]> wrote:
> No.  Load it once and reuse it, otherwise you will suffer some nasty
> performance.
>
> On Dec 22, 10:35 am, nirm <[email protected]> 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- Hide quoted text -
>
> - Show quoted text -

-- 
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

Reply via email to