You should try to do all the updates as one: get the imagedata of the image, make whatever changes you need to, then set the imagedata of the image again. There are a few gotchas when setting the imagedata. Make sure the image is the right size. If you're setting a 10x20 pixel image, you need to supply exactly 800 bytes of data. That's 4 for each pixel. The first byte is 0, the next three are Red, Green and Blue.
gc On Wed, Nov 17, 2010 at 12:02 AM, Scott Rossi <[email protected]>wrote: > Hi Marty: > > Maybe this will help -- execute the following in your message box: > go url " > http://www.tactilemedia.com/site_files/downloads/pixel_colorize.rev" > > See all tutorial stacks (Web link): > http://www.tactilemedia.com/site_files/software/tutorials.html > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > Recently, Marty Billingsley wrote: > > > Is it possible to read and set the color of individual pixels in an > > image? ImageData is a little incomprehensible. > > > > Basically, I'd like to be able to do something like: > > for each pixel in image "x", set the color of that pixel to some > > calculated value (or a value pulled from a pixel of another image) > > > > Thanks for any pointers you can give me! > > > > - marty > > > > -- > > Marty Billingsley > > Department of Computer Science > > The University of Chicago Laboratory Schools > > _______________________________________________ > > use-revolution mailing list > > [email protected] > > Please visit this url to subscribe, unsubscribe and manage your > subscription > > preferences: > > http://lists.runrev.com/mailman/listinfo/use-revolution > > > > > > > > _______________________________________________ > use-revolution mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
