OZONE Asylum
Forums
Multimedia/Animation
Flash 8: Playing with pixels
This page's ID:
27653
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
ok, i assume you already have some custom format in your flash movie where the pixels are stored. probably a two dimensional array with color values. i suggest you create a php script, in which the gd library php->gd creates the image and with php->imagesetpixel you can set each pixel. to get the pixeldata to the php file, you can just create one huge string and post them to the php-script using flash. look up "loadVariables" in the flash help on how to post variables via HTTP. for example if the image would be 400 by 300 and all red, the string could look like: 400|300|ff0000|ff0000|ff0000|..... your php script can then php->explode this string and you will get an array where the first two values are width and height followed by the pixel colors in hex format. [url=http://www.embege.com][img]http://www.embege.com/asylum/ozone-sig-toytrain.gif[/img][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »