« first day (252 days earlier)      last day (398 days later) » 

9:26 AM
public Bitmap getResizedBitmap(Bitmap bm, int newHeight, int newWidth)
{

int width = bm.getWidth();
int height = bm.getHeight();
float scaleWidth = ((float) newWidth) / width;
float scaleHeight = ((float) newHeight) / height;

// create a matrix for the manipulation

Matrix matrix = new Matrix();

// resize the bit map

matrix.postScale(scaleWidth, scaleHeight);

// recreate the new Bitmap
System.gc();
Bitmap resizedBitmap = Bitmap.createBitmap(bm, 0, 0, width, height, matrix, false);
return resizedBitmap;
 
1 message moved from Android Discussion
 

« first day (252 days earlier)      last day (398 days later) »