Chapter 7. Line ArtDrawing


Previous chapters have discussed the Crayon Model, the technique Quartz 2D uses to draw line art. In the Crayon Model, your application draws by first defining a path and then asking the computer to paint that path onto a graphics context. Chapter 6, "Line ArtBuilding Paths," covered the techniques you use to construct the paths that you want to draw. There are two basic drawing operations you can apply to a path. Filling a path involves painting the interior of the path with a solid color, a pattern, or a nice gradient of colors called a shading. When the computer strokes a path, it traces a line along the path. This chapter continues the exploration of line art by describing the options that affect these two drawing operations. Along the way we will look at some more aspects of a path such as the joints between segments and the way the computer determines what the interior of a closed path is. By the time we are done you should have a good understanding of how to draw the paths you've constructed.




Quartz 2D Graphics for Mac OS X Developers
Quartz 2D Graphics for Mac OS X Developers
ISBN: 0321336631
EAN: 2147483647
Year: 2006
Pages: 100

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net