Hi,
To display a thumbnail version of your picture you could use the
following :
public Bitmap makeThumbnail(Bitmap bmp){
int newWidth = 100;
int newHeight = 100;
int width = bmp.getWidth();
int height = bmp.getHeight();
float scaleWidth = ((float)newWidth)/width;
float scaleHeight = ((float)newHeight)/height;
Matrix matrix = new Matrix();
matrix.postScale(scaleWidth, scaleHeight);
Bitmap bmpResized = Bitmap.createBitmap(bmp, 0, 0,
width, height, matrix, true);
return bmpResized;
}
Best,
On Sep 12, 8:47 am, Ratheesh Valamchuzhy <[email protected]> wrote:
> Hi All
>
> This may help
>
> http://www.anddev.org/image_web_remote_url_urlconnection_bitmapfactor...http://stackoverflow.com/questions/3032729/android-view-web-pictures-...http://vikaskanani.wordpress.com/2011/01/22/android-web-image-gallery/
>
> thanks
>
> Ratheesh
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en