That works! I'll have to see how it looks printed, but that does generate the pdf. I also just noticed that an alternative to using processing.pdf to generate the image is to use save(). [a version of that below] It can go directly to jpg, though it looks like that's going to be at lower resolution. I'll have to do some testing to see how they compare and how well they print.
At any rate, I think you've helped me over a hurdle, so thanks a lot for taking the time to look at this, PhiLho!
~
PImage myImage;
PImage myImage2;
void setup() {
size (800, 800);
myImage = loadImage ("Imagename.jpg");
myImage2 = loadImage ("Imagename2.jpg");
}
void draw() {
PGraphics result = createGraphics(width, height, JAVA2D);
result.beginDraw();
smooth();
result.image (myImage2, 0, 0);
int w = int(random(width));
for (int i = 0; i < 300; i++) {
int x = int(random(50, 100));
int y = int(random(height));
result.copy (myImage, w, y, x, x, int(random(-200, 1200)), y, x, x);
// endRecord(); // Should be after the loop, if you use this style
}
result.endDraw();
image(result, 0, 0);
save("processedimage.jpg");
println("Done");
noLoop();
exit();
}