Hi Ben,
fry wrote on Aug 30th, 2008, 3:19am:I suspect that's nothing to do with Processing, and it's just the weird ways that Photoshop handles opening and rasterizing PDF files (both in terms of resolution and the time it takes to render them).
According to the doc the output is a vector PDF so based on the size and the number of line statements issued, I'm not to surprised at how long it takes PS to open. However, looking at the same PDF in Reader leads me to believe that Adobe is accurately reporting the size.
fry wrote on Aug 30th, 2008, 3:19am:Also fwiw, don't use loadImage() before size()... size() needs to be the first thing in setup().
Rats. That really dings the usefulness of the height and width fields because that means that before I load any image, I am going to have to go into a separate image app and manually find out what it's dimensions are and manually enter them into Processing. Being able to use the two fields to set size is so much more elegant.
Note in my prior version of the program I didn't use draw() - only setup() and all worked fine except for the sizing issue. I then modded the program to use draw() to see if that would make any difference but it did not.
Just tested placing size() first - it makes no difference in the outcome so I think I'll stick with loading first.
One more test and that will be to just do the draw commands without loading any image to see if that has any impact.
Jim