is getSize() true ?? maybe it should be different
2011/10/8, Greg Donald gdon...@gmail.com:
I am loading a bitmap and then creating a new scaled version like this:
Bitmap bm = BitmapFactory.decodeResource( getResources(), R.drawable.grid );
Matrix matrix = new Matrix();
matrix.postScale(
I am loading a bitmap and then creating a new scaled version like this:
Bitmap bm = BitmapFactory.decodeResource( getResources(), R.drawable.grid );
Matrix matrix = new Matrix();
matrix.postScale( (float) getSize() / bm.getWidth(), (float) getSize()
/ bm.getHeight() );
Bitmap b =
2 matches
Mail list logo