• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

9. Clipping and Masking > Case Study -- Masking a Graphic

Case Study -- Masking a Graphic

Example 9-6 adds a JPG image to the image that was constructed in Section 8.10. As you can see in Figure 9-6 (reduced to save space and in grayscale to avoid using color ink), the image obscures the curve inside the main ellipse, and the blue sky intrudes horribly on the pale red section.

Example 9-6. Unmasked image
<defs>
    <font-face font-family="bakbatn">
        <font-face-src>
            <font-face-uri xlink:href="/getfile?safari4=true&item=/images/0596002238/assets/kfont.svg#kfont-defn"/>
        </font-face-src>     
    </font-face>
</defs>

<!-- draws ellipse and text -->
<use xlink:href="/getfile?safari4=true&item=/images/0596002238/assets/ksymbol.svg#ksymbol"/>

<image xlink:href="/getfile?safari4=true&item=/images/0596002238/assets/kwanghwamun.jpg" x="72" y="92"
    width="160" height="120"/>

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint