niles_v@cho006.cho.ge.com (10/08/90)
Warning: rank beginner question - How do I print more than one copy of an image on the same sheet? Here's what I am trying to do: /test_img <ff.....BIG image string .... ......ff> def 100 100 translate 270 110 scale 800 392 1 [800 0 0 392 0 0] {test_img} image 200 200 translate 270 110 scale 800 392 1 [800 0 0 392 0 0] {test_img} image showpage but I just can't seem to get the second image to print. Feel free to post or Email - I generally read this newsgroup and if people are interested I'll post a summary. -- Niles VanDenburg niles_v@cho006.cho.ge.com
phillips@tegra.COM (Steve Phillips) (10/11/90)
In article <1990Oct7.185320.172@cho006.cho.ge.com> niles_v@cho006.cho.ge.com writes: > >How do I print more than one copy of an image on the same sheet? >Here's what I am trying to do: > >/test_img ><ff.....BIG image string .... >......ff> def >100 100 translate >270 110 scale >800 392 1 [800 0 0 392 0 0] {test_img} image >200 200 translate >270 110 scale >800 392 1 [800 0 0 392 0 0] {test_img} image >showpage > >but I just can't seem to get the second image to print. It looks like your problem is that you're forgetting to un-translate and un-scale after each image, so you're drawing multiple images but they're ending up off the page. Try using gsave/grestore: ... gsave 100 100 translate 270 110 scale 800 392 1 [800 0 0 392 0 0] {test_img} image grestore gsave 200 200 translate 270 110 scale 800 392 1 [800 0 0 392 0 0] {test_img} image grestore showpage Hope this helps, Steve -- ============================================================================ Steve Phillips "Never put off until tomorrow what Tegra-Varityper, Inc., Billerica, MA you can do the day after tomorrow" tegra!phillips@uunet.com - Mark Twain