BitmapFactory.Options bf = new BitmapFactory.Options();
bf.inSampleSize = 4;
Bitmap bmp = BitmapFactory.decodeFile(path, bf);

This will scale your bitmap to 1/4th of the original size
Thanks and Regards,
Kumar Bibek

On Jun 12, 2:21 pm, pawan nimje <pawanni...@gmail.com> wrote:
> I tried this method [ Bitmap.createScaledBitmap].. its working ..but the
> problem is aspect ratio is not maintained  ...
>
> On Thu, Jun 10, 2010 at 1:12 PM, Goran Genter <goran.gen...@gmail.com>wrote:
>
>
>
> > On Jun 10, 6:20 am, pawan nimje <pawanni...@gmail.com> wrote:
>
> > > Can you suggest some method to pre-scale the bitmap.
>
> > Bitmap bmpScaled = Bitmap.createScaledBitmap(Bitmap bmpSource, 50, 50,
> > true)
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to