i am getting image from database as a byte array and drawing it on console but i am unable to resize the image ..
how to reduce the size of image........
only a part of image is seen on screen..........
[syntax="java"]
Using java Syntax Highlighting
- byte image[] = postMethod.getResponseBody();
- Bitmap bitmap1 = BitmapFactory.decodeByteArray(image, 0, image.length);
- BitmapDrawable drawable1 = new BitmapDrawable(bitmap1);
- ImageView imageView = new ImageView(this);
- imageView.setImageDrawable(drawable1);
- imageView.setScaleType(ScaleType.MATRIX);
- addContentView(imageView,
- new LinearLayout.LayoutParams(
- LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
i am doin lik this how to reduce size pls help........

