Thanks to everyone who responded! I understand imageData a lot better
now. (And the fact that transparency is stored in maskData, not
imageData.)
Turns out I was able to solve the problem using a combination of crop
and imageData -- now I can split an image into irregularly-shaped
puzzle
On Tue, Nov 16, 2010 at 6:50 PM, Marty Billingsley
ma...@ucls.uchicago.eduwrote:
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
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
Recently, I wrote:
execute the following in your message box:
go url http://www.tactilemedia.com/site_files/downloads/pixel_colorize.rev;
Whoops -- something stopped working in the random colorizing portion of this
demo. Reposted the stack with a fix (hopefully it's working correctly now).
Recently, Geoff Canyon Rev wrote:
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
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
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
Is it possible to read and set the color of individual pixels in an
image? ImageData is a little incomprehensible.
Maybe this will clear things up a bit:
http://www.sonsothunder.com/devres/revolution/tips/imag003.htm
It's dated, but still applicable...
Ken Ray
Sons of Thunder Software,
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