Thursday, September 1, 2011

[android-developers] Re: Should i resize the bitmap before adding to a ImageView or let the ImageView resize the Bitmap?

Go to the docs and look up BitmapFactory.Options.

You can adjust the sample size of the Bitmap to conserve memory. Play
with this and the scaling options to get the best performance.

On Sep 1, 5:04 am, Benjamin <benjaminru...@googlemail.com> wrote:
> Hello friends,
>
> i have a simple question: Should i resize a bigger bitmap before
> adding to a ImageView or let the ImageView resize the Bitmap?
>
> What's the right way, regarding performance?
>
> Thanks

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

No comments:

Post a Comment