On Wed, Jun 16, 2010 at 8:55 PM, blab <[email protected]> wrote:

> As far as I understand the scaling happens only once - when the image
> is loaded into memory (Bitmap object is created). After this there
> should not be any scaling happening as the object is already sitting
> in memory. Therefore, no loss to performance during the gameplay.
>
> Please correct me if I'm wrong.
>

It very much depends on what you are doing.  There are many situations where
it can't pre-scale.

And I'll say again...  whatever code there was in 1.5 to handle bitmaps of
different sizes was not complete in 1.5, and should not be used.

If you really need to do this, I would suggest putting your bitmaps in as
raw resources and scaling them yourself at load time.

-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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