[android-developers] Re: Drawables Galore - Optimization Question

2009-02-19 Thread Mike Reed
As part of a smart Sprite class, you may want to use Canvas.drawBitmapRect(...), which allows you to draw a subset (rect) of a larger bitmap. Thus a group of sprites could reference the same shared large image, each with their own rect which pulls out the part they want to draw. On Wed, Feb 18,

[android-developers] Re: Drawables Galore - Optimization Question

2009-02-18 Thread Dianne Hackborn
The images are just stored as compressed PNGs, so the overhead for having theme separate is the normal PNG overhead. Whether one way or the other will be a win depends on how much they compress in the two different configurations (which depends on the contents of the images) as well as the