// Image Processing Ws // Zsofia Ruttkay - ruttkay@mome.hu // Mod of D. Shiffman's Example 15-1: "Hello World" images // Using multiple images, at different location and sizes // We declare 2 vaiables of PImage type for the 2 flower iamges PImage flower1, flower2; void setup() { size(320,240); // Make a new instance of a PImage by loading an image file flower1 = loadImage("narcis.jpg"); flower2 = loadImage("tulip.jpg"); } void draw() { background(0); //The image() function displays the images at the given locations (first 2 numbers) and scales them to the with and heightht (last 2 numbers). image(flower1,0,0, 100, 240); image(flower2,100,0, 220, 240); } void keyPressed() { save ("screenshot.jpg"); }