Path: utzoo!utgpu!jarvis.csri.toronto.edu!me!radio!brian From: brian@radio.toronto.edu (Brian Glendenning) Newsgroups: comp.graphics Subject: Fast Zoom for Suns Message-ID: <1054@radio.toronto.edu> Date: 28 Mar 88 15:24:49 GMT Reply-To: brian@radio.toronto.edu (Brian Glendenning) Organization: Radio Astronomy, Dept. of Astronomy, U. of Toronto, Canada. Lines: 34 [My apologies if you've already seen this, but I'm pretty sure it got lost in-campus] Does anyone have a piece of code to do a fast zoom to a window under suntools? I have a program that acts as a graphics server to a large astronomy package, and every last little bit of speed will be felt. What I'm now doing is stepping through the image a line at a time, zooming that line into a temp array by "hand", and then pw_rop'ing the zoomed line into the screen. That is: 111000111000111000111000111000 1010101010101010 Zoom by 3 (say) ---> 111000111000111000111000111000 -> pw_rop 111000111000111000111000111000 (original image line) (zoomed temp array) While this is a lot faster than some of my earlier efforts, I thought I'd ask if anyone had any really fast code, or suggestions. For instance, I'm doing an incore transfer that in principle isn't necessary if I wrote to screen memory, but I'm not quite sure how to do that, especially if one wants to worry about overlapping windows etc. My code now takes a couple of seconds to zoom the full screen (colour sun 3/180). Any advice, programs, or code fragments would be much appreciated. Thanks. -- Brian Glendenning INTERNET - brian@radio.toronto.edu Radio Astronomy, U. Toronto UUCP - {uunet,pyramid}!utai!radio!brian +1 (416) 978-5558 BITNET - glendenn@utorphys.bitnet