Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

Chapter 3 - Output 45 0 Cerror pixel_array(pcell, m, n, colorind) Ccoor *pcell; /* base of array in VDC space*/ Cint m, n; /* dimensions of color array in screen space*/ Cint *colorind; /* array of color values*/ pixel_array draws array colorind staning at pointpcell (expressed in VDC space). m and n (expressed in screen space) define the x and y dimensions of the array. Therefore,pixel arrays always have a constant physical size, indepen- dent of the dimensions of VDC space. The pixel array is drawn down and to the right from point pcell. If either m or n are not positive, the absolute value of m and n are used. pixel array is not affected by the current drawing mode.

Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. EVALOVWS [69] Value outside of view surface. BitBlt Source Array Cerror bitblt_source_array(pixsource, xo, yo, xe, ye, pixtarget,.xt, yt, ·name) Cpixrect *pixsource, *pixtarget; /* source and target pixel arrays*/ Cint xo, yo; /* coordinates of source array (in voc·space) */ Cint xe, ye; /* dimensions of source array (in screen space) */ Cint xt, yt; /* coordinates of target pixel array (in VDC space) */ Cint name; /* view surface name*/ bi tblt_source_array moves a pixel array from point (xo, yo) to point (xt, yt) using the current drawing mode. Both of these points are expressed in VDC space.

The size of the pixel array is determined by the xe and ye arguments which are expressed in screen space. pixsource and pixtarget are pointers to pix- rects which must already be created by mem_create.11 These pixrects must be the same depth as the view surface: I-bit deep on a monochrome device, 8-bit on a color device. The source area of the view surface associated with name is saved into pixsource (at 0,0). The target area, after pixsource is applied to it, is read into pixtarget pixrect (at 0,0). 0 An error is detected if either xe or ye are not positive. If the replicated pattern array overlaps with the source array on the screen, the visual result depends on the current drawing mode.

pixsource and pixtarget may have different contents depending on the screen drawing mode (see the set_drawing_mode func- tion). Multiple view surfaces and bitblt's are incompatible, so a name argument must be specified. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. 0 11 Refer to the Pixreel Reference Ma1UMJI for more information about pixrects. Version C of 17 March 1986