Graphics Programs Reference
In-Depth Information
Figure 5-6. Non-zero (L) and even-odd (R) winding rules
Colors and Color Spaces
To change the fill or stroke color in a PDF graphics stream, we need to change the
current color space using one operator, and then change the color using another.
Fill and stroke color spaces are separate—the current fill color space could be
DeviceRGB
and the stroke color space
DeviceGray
, for example.
In this section, we look at the basic
DeviceGray
,
DeviceRGB
, and
DeviceCMYK
color
spaces (more complicated color spaces are covered in the PDF Standard):