Skip to content Skip to sidebar Skip to footer

Drawbitmap Takes Too Long

Hello here is the code: URL uri = new URL(photoUrl); URLConnection connection = uri.openConnection(); Log.i(TAG, 'connecting...'); conne

Solution 1:

You might get better performance by creating a scaled bitmap in the first place.

Bitmapbmp= BitmapFactory.decodeFile(myfile.getPath());
bmp = bmp.createScaledBitmap(bmp, width, height, true);

Then you won't have to use a matrix when drawing it out to the screen either.

Post a Comment for "Drawbitmap Takes Too Long"