rectwrite on 70G series machines...

root at MCIRPS2.MED.NYU.EDU root at MCIRPS2.MED.NYU.EDU
Sun Jul 29 20:03:36 AEST 1990


Does it work ?

I am using a 70G machine, which was never very fast for pixel operations.

I can not seem to get a patch of pixels to write from

rectwrite(0,XSIZE,0,YSIZE,Image);

The pixels are in an array of shorts.

static Colorindex Image[XSIZE][YSIZE];


I can get the pixels out by doing a

ortho2(-0.5,float(XSIZE)-0.5,-0.5,float(YSIZE-0.5));

for(i=0;i<XSIZE;i++)for(j=0;j<YSIZE;j++)
                {
                color(Image[i][j]);
                pnt2i(i,j);
                }



dan.
+-----------------------------------------------------------------------------+
| karron at nyu.edu                          Dan Karron                          |
| . . . . . . . . . . . . . .             New York University Medical Center  |
| 560 First Avenue           \ \    Pager <1> (212) 397 9330                  |
| New York, New York 10016    \**\        <2> 10896   <3> <your-number-here>  |
| (212) 340 5210               \**\__________________________________________ |
+-----------------------------------------------------------------------------+



More information about the Comp.sys.sgi mailing list