// This macro demonstrates how to use the Image.width, // Image.height, Image.copy and Image.paste(x,y) macro // functions, added in ImageJ 1.53f. run("Boats"); w=100; h=170; makeRectangle(146, 192, w, h); Image.copy; x=0; y=0; do { Image.paste(x,y); x += w; if (x>Image.width) { x = 0; y += h; } } while(x