Re: [android-developers] BitmapFactory.decodeResource() zero width/height

2011-10-10 Thread metin ögtem
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(

[android-developers] BitmapFactory.decodeResource() zero width/height

2011-10-08 Thread Greg Donald
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 =