POSTSCRIPTXEROX DOCUPRINT NPS GUIDE TO USING PAGE DESCRIPTION LANGUAGES 2-19Figure 2-4. Stroke functionThe top illustration above shows four columns of three pixels on theprinting device. The dashed lines intersect at the center points of thedevice pixels or dots. The columns from left to right are designatedas columns 1, 2, 3, and 4.The lower illustration builds on the top illustration by adding twovertical line segments that will be stroked. The sides of the line to bestroked are indicated with solid bold lines. The line to right has its leftside to the left of the center point of the third column of pixels and hasits right side to the right of the center point of the fourth column.Because the center points of the third and fourth columns of pixelsare within the thickness of this line, all six pixels are turned on(indicated in this picture by cross-hatching the pixels). Contrast thiswith the line on the first and second columns of pixels. Because thecenter point of the second column falls outside its boundaries, onlythe first column is turned on.FillThe Fill function controls the shapes, zero-width lines, curvedshapes, and image operators.ShapesA shape is a path to be painted with the current color or with apattern. To paint shapes, “insideness” computations need to beperformed. These determine which pixels fall inside and outside theshape. During fill, the pixels whose centers lie within the insideboundaries of the shape are turned on. Those whose centers lieoutside the shape are turned off.Some PostScript creators describe long, very thin, rectangular fillregions in the masters (for example, boundaries of boxes or rules).DocuPrint selects some of those shapes and treats them as thinpaths that are “stroked” to ensure that they are imaged (painted).