Previous Next


                                                 526
     CHAPTER 7                                                                    Transparency



     gether in another compositing operation, the color’s contribution is correctly rep-
     resented. Note that if αr is zero, the result color is undefined.

     The formula shown above is a simplification of the following formula, which pre-
     sents the relative contributions of backdrop, source, and blended colors in a more
     straightforward way:
      αr × Cr = [ ( 1 – αs ) × αb × Cb ] + [ ( 1 – αb ) × αs × Cs ] + [ αb × αs × B ( Cb , Cs ) ]

     (The simplification requires a substitution based on the alpha compositing for-
     mula, which is presented in the next section.) Thus, mathematically, the back-
     drop and source alphas control the influence of the backdrop and source colors,
     respectively, while their product controls the influence of the blend function. An
     alpha value of αs = 0.0 or αb = 0.0 results in no blend mode effect; setting αs = 1.0
     and αb = 1.0 results in maximum blend mode effect.


7.2.6 Shape and Opacity Computations

     As stated earlier, the alpha values that control the compositing process are de-
     fined as the product of shape and opacity:
      αb = fb × qb
      αr = fr × qr
      αs = fs × qs

     This section examines the various shape and opacity values individually. Once
     again, keep in mind that conceptually these values are computed for every point
     on the page.

     Source Shape and Opacity

     Shape and opacity values can come from several sources. The transparency mod-
     el provides for three independent sources for each. However, the PDF representa-
     tion imposes some limitations on the ability to specify all of these sources
     independently (see Section 7.5.3, “Specifying Shape and Opacity”).

     • Object shape. Elementary objects such as strokes, fills, and text have an intrin-
        sic shape, whose value is 1.0 for points inside the object and 0.0 outside. Simi-
        larly, an image with an explicit mask (see “Explicit Masking” on page 351) has a

Previous Next