Saturday, June 12, 2010

Re: [android-developers] Re: Placing a bitmap image in ImageView

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.genter@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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate