Hi,
The only way to reduce the memory size of a bitmap is to resize it
and reduce the number of pixels.
If you are loading images from the server, you might want to think
about generating smaller images server side - you may only have to do
this once when the image is uploaded, so this may be more useful if you
don't require lots of different sizes / unknown sizes at runtime -
depends on the project. Wordpress among other things does this quite
nicely for you at upload time (when the Wordpress coders stop moaning
about FP10 and fix the uploader, it will be even nicer) and there are
lots of scripts which are variations - resize on the fly & cache, etc.
For client side - reduce the size of the container, then draw the
bitmap image of this into a new bitmap data object - you should then
have a smaller image and you could discard your container'd one.
Glen
Anthony Pace wrote:
I can do it by reducing the size of the container object; yet, the
bitmap remains the same file sized and can be scaled well.
Is there a way to guarantee the memory usage drops? or at least a
better way then mine?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders