46 SunCGI Reference Manual EVALOVWS (69] Value outside of view surface. BitBlt Pattern Array Cerror bitblt__pattern_array(pixpat, px, py, pixtarget, rx, ry, ox, oy, dx, dy, name) Cpixrect *pixpat; /* pattern source array*/ Cint px, py; /* pattern extent*/ Cpixrect *pixtarget; /* destination pattern array*/ Cint rx, ry; /* pattern reference point*/ Cint ox, oy; /* destination origin*/ Cint dx, dy; /* destination extent*/ Cint name; /* view surface name*/ bi tblt_pattern_array replicates the pattern (using the current drawing mode) stored in pixpat to fill the area of the view surface which is determined by ox, oy and dx, dy.
The pattern reference point determines the offset of the pat- tern array from the point zero. The resultant pattern array is displayed at ox, oy . The visual result depends on the current drawing mode. pixpat is a pointer to a pixrect which must be created and initialized with the pattern by the application program. pixtarget is a pointer to a pixrect (with same depth as the device) which must already be created by the user, using mem _ create. The target area, after pixpat is applied to it, is read into the pixtarget pixrect (at 0,0). b Multipl~fiv1d·ew surfaces and bitblt's are incompatible, so a name argument must O·· . e spec, e . Errors ENOTVSAC [4] CGI not in proper state:
CGI shall be in state VSAC. EVALOVWS [69] Value outside of view surface. EPXNOTCR [70] Pixrect not created.
BitBlt Patterned Source Array Cerror bitblt__patterned_source_array(pixpat, px, py, pixtarget, rx, ry, pixsource, sx, sy, ox, oy, dx, dy, name) Cpixrect *pixpat; /* pattern source array*/ Cint px, py; /* pattern extent*/ Cpixrect *pixsource; /* source array*/ Cint sx, sy; /* source origin*/ Cpixrect *pixtarget; /* destination pattern array*/ Cint rx, ry; /* pattern reference point*/ Cint ox, oy; /* destination origin*/ Cint dx, dy; /* destination extent*/ Cint name; /* view surface name*/ bitblt_patterned_source_array replicates (using the current drawing mode) the pattern stored in pixpat to fill the area of the view surface deter- mined by ox, oy and dx, dy.
The source area of the view surface is read into the pixrect pointed to by pixsource (which must already be created by the user with same depth as the device) at 0,0. The source area is stenciled through o the replicated pattern onto the view surface at ox, oy, using the current drawing · mode. The target area, after the copy, is read into the pixtarget pixrect. If Version C of 17 March 1986