Path: utzoo!attcan!uunet!decwrl!elroy.jpl.nasa.gov!ames!sgi!shinobu!odin!surfside!jindak From: jindak@surfside.sgi.com (Chris Schoeneman) Newsgroups: comp.sys.sgi Subject: Re: rectwrite on 70G series machines... Message-ID: <11163@odin.corp.sgi.com> Date: 31 Jul 90 16:15:24 GMT References: <9007291150.AA09984@mcirps2.med.nyu.edu> <11144@odin.corp.sgi.com> Sender: news@odin.corp.sgi.com Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 34 In article <11144@odin.corp.sgi.com> kurt@cashew.asd.sgi.com (Kurt Akeley) writes: >In article <9007291150.AA09984@mcirps2.med.nyu.edu>, >root@MCIRPS2.MED.NYU.EDU writes: >|> I can not seem to get a patch of pixels to write from >|> >|> rectwrite(0,XSIZE,0,YSIZE,Image); >|> > >my direct response to dan bounced, so i'll respond on the net. My mail bounced, too. You might have made a typo, so I just wanted to be sure that you knew the correct order for the parameters. long rectread(Screencoord x1, Screencoord y1, Screencoord x2, Screencoord y2, Colorindex parray[]); long lrectread(Screencoord x1, Screencoord y1, Screencoord x2, Screencoord y2, unsigned long parray[]); void rectwrite(Screencoord x1, Screencoord y1, Screencoord x2, Screencoord y2, Colorindex parray[]); void lrectwrite(Screencoord x1, Screencoord y1, Screencoord x2, Screencoord y2, unsigned long parray[]); You've got (x1,x2,y1,y2) not (x1,y1,x2,y2). While this is different from, say, ortho2(), viewport(), and scrmask(), it is the same as rect(). -Chris Schoeneman Chris Schoeneman | I was neat, clean, shaved and sober, jindak@surfside.esd.sgi.com | and I didn't care who knew it. Silicon Graphics, Inc. | -Raymond Chandler Mountain View, CA | (The Big Sleep)