Previous Next


                                          282
CHAPTER 4                                                                      Graphics



Example 4.20

  20 0 obj                                              % Tint transformation function
      << /FunctionType 4
           /Domain [ 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ]
           /Range [ 0.0 1.0 0.0 1.0 0.0 1.0 ]
           /Length 27
      >>
  stream
      { 5 3 roll pop pop }
  endstream
  endobj

Example 4.21 uses an extension of the techniques described above to produce the
quadtone (four-component) image shown in Plate 7.

Example 4.21

  5 0 obj                               % Image XObject
      << /Type /XObject
         /Subtype /Image
         /Width 288
         /Height 288
         /ColorSpace 10 0 R
         /BitsPerComponent 8
         /Length 105278
         /Filter /ASCII85Decode
      >>
  stream
  … Data for grayscale image …
  endstream
  endobj

  10 0 obj                              % Indexed color space for image
     [ /Indexed
           15 0 R                       % Base color space
           255                          % Table has 256 entries
           30 0 R                       % Lookup table
     ]
  endobj

Previous Next