If the image is in a container, you could capture a bitmap of the container
component and save that:
import flash.display.Bitmap;
import flash.display.BitmapData;
import mx.core.UIComponent;
import mx.graphics.ImageSnapshot;
private function getSnapshotImage( component:UIComponent ):Bitmap
{
var bitmapData:BitmapData = ImageSnapshot.captureBitmapData( component
);
var bitmap:Bitmap = new Bitmap( bitmapData );
return bitmap;
}
-TH
--- In [email protected], "s_hernandez01" <s_hernande...@...> wrote:
>
> Hey does anyone know if it's possible to resize and image in flex and save it
> to a mysql database so that I have say a 512x512 and a 60x60? If so, is there
> a tutorial out on the web somewhere? This is just to avoid having to resize
> it myself manually when I receive the 512x512.
>