Re: Is it possible to access or set individual pixels of an image?

2010-11-18 Thread Marty Billingsley
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

Re: s it possible to access or set individual pixels of an image?

2010-11-17 Thread Trevor DeVore
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

Re: Is it possible to access or set individual pixels of an image?

2010-11-17 Thread Geoff Canyon Rev
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

Re: Is it possible to access or set individual pixels of an image?

2010-11-17 Thread Scott Rossi
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).

Re: Is it possible to access or set individual pixels of an image?

2010-11-17 Thread Scott Rossi
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

s it possible to access or set individual pixels of an image?

2010-11-16 Thread Marty Billingsley
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

Re: Is it possible to access or set individual pixels of an image?

2010-11-16 Thread Scott Rossi
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

Re: Is it possible to access or set individual pixels of an image?

2010-11-16 Thread Ken Ray
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,

Re: Is it possible to access or set individual pixels of an image?

2010-11-16 Thread Scott Rossi
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