3

I'm using code bellow to decode bitmaps.

Bitmap temp=BitmapFactory.decodeResource(getResources(), R.drawable.image);
Bitmap image=Bitmap.createScaledBitmap(temp, width, height, true);

I'm using code bellow to draw bitmap on canvas.

Canvas c=SurfaceHolder.lockCanvas();
c.drawBitmap(image, 0, 0, null);
SurfaceHolder.unlockCanvasAndPost(c);

Is there any faster way to draw bitmaps on canvas?

Loktar
  • 33,698
  • 8
  • 87
  • 103

1 Answers1

0

Try Native code development(NDK). The NDK development helps to fastest way to display a Bitmaps.

Community
  • 1
  • 1
raja
  • 338
  • 1
  • 12
  • 1
    Answers should be able to stand on their own. Make sure to include relevant information and/or examples. Otherwise, write a comment for the main question. – user2864740 Aug 08 '14 at 12:38