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

2011-09-02 Thread skink


Benjamin 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

AFAIK ImageView doesnt resize your Bitmap - it can only scale its
Canvas while drawing

pskinke its Canvas while drawing

pskink

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


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

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