I'm using something like this ...

public static Bitmap resizeBitmap(Bitmap draw, int newWidth) {
        if (draw == null || newWidth <= 0 || draw.getWidth() == newWidth)
                return draw;

        int newHeight = (int) (newWidth * draw.getHeight() /
draw.getWidth());
        return Bitmap.createScaledBitmap(draw, newWidth, newHeight, true);
}

On Mar 14, 11:49 am, monty <[email protected]> wrote:
> Hi All
>     My issue is simple.I want to use one set of images which can be
> used on mobile as well as tablets.I have a image of size 690 by 400 .i
> want to use this image and resize it programmatically and have this
> resized image displayed on mobiles.
>    Could anyone please give an idea on how to accomplish this?This is
> bcoz if i use different set of images it will increase the size of
> "apk".

-- 
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

Reply via email to