Hi Christophe,

You can grab the image's bitmap data, modify it and then send it to the server 
as a ByteArray.


You'll need a method on the server which will save the ByteArray as an image, 
replacing the original one.


/******To grab the bitmap data once the image is loaded*******/
var bmd:BitmapData;
bmd=new BitmapData(image.width,image.height);
bmd.draw(image);

//you can modify the pixels using BitmapData's setPixel and setPixel32 methods

/********To get the ByteArray from the bitmap data*******/
var byte_arr:ByteArray=bmd.getPixels();


Once you receive the ByteArray on the server side, you'll have to encode it in 
the appropriate image format and then save it as a file.

If you can tell me what you are using on the server side I can help point you 
in the right direction.

Hope this helps,

Tibor.
www.tiborballai.com


--- In [email protected], "Christophe" <christophe_jacque...@...> 
wrote:
>
> Hello, 
> 
> How to modify pixels on an image in the assets folder, then to save it in the 
> same folder on the server.
> 
> Thank you,
> Christophe,
>


Reply via email to