Previous Next
230
CHAPTER 4 Graphics
TABLE 4.10 Path-painting operators
OPERANDS OPERATOR DESCRIPTION
— S Stroke the path.
— s Close and stroke the path. This operator has the same effect as the sequence h S.
— f Fill the path, using the nonzero winding number rule to determine the region to fill
(see “Nonzero Winding Number Rule” on page 232). Any subpaths that are open
are implicitly closed before being filled.
— F Equivalent to f; included only for compatibility. Although PDF consumer applica-
tions must be able to accept this operator, PDF producer applications should use f
instead.
— f* Fill the path, using the even-odd rule to determine the region to fill (see “Even-Odd
Rule” on page 233).
— B Fill and then stroke the path, using the nonzero winding number rule to determine
the region to fill. This operator produces the same result as constructing two identi-
cal path objects, painting the first with f and the second with S. Note, however, that
the filling and stroking portions of the operation consult different values of several
graphics state parameters, such as the current color. See also “Special Path-Painting
Considerations” on page 569.
— B* Fill and then stroke the path, using the even-odd rule to determine the region to fill.
This operator produces the same result as B, except that the path is filled as if with
f* instead of f. See also “Special Path-Painting Considerations” on page 569.
— b Close, fill, and then stroke the path, using the nonzero winding number rule to de-
termine the region to fill. This operator has the same effect as the sequence h B. See
also “Special Path-Painting Considerations” on page 569.
— b* Close, fill, and then stroke the path, using the even-odd rule to determine the re-
gion to fill. This operator has the same effect as the sequence h B*. See also “Special
Path-Painting Considerations” on page 569.
— n End the path object without filling or stroking it. This operator is a path-painting
no-op, used primarily for the side effect of changing the current clipping path (see
Section 4.4.3, “Clipping Path Operators”).
Previous Next