There are JPEG en PNG encoder classes for AS3
http://code.google.com/p/as3corelib/
http://as3corelib.googlecode.com/svn/trunk/src/com/adobe/images/

regards,
Muzak

----- Original Message ----- 
From: "Jer Brand" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 21, 2007 10:49 PM
Subject: Re: [Flashcoders] save swf


> Uncompressed, yeah, that'd be ugly. But how does something like the
> following (guesswork code) perform?
>
> foo:BitmapData = new BitmapData() ;
> /* put your image data in there, with whatever method */
>
> bar:ByteArray = foo.getPixels(myImageRect) ;
> var.compress() ;
>
> Again, mostly asking because I don't know enough about AS3/FP9. It's
> supposed to be using zlib compression on the ByteArray but for all I know
> it's still doesn't compress enough or quickly enough to be useful. I'm
> totally leaving out the question of conversion after post or Socket or
> whatever used server side to get the job done, but I have to assume it
> wouldn't be difficult using GD or ImageMagic.
>
> Anyone used this?
>


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to