Chapter 2 Quartz 2D Drawing Basics
No matter how complex a drawing appears, it’s the result of performing a number of basic operations. Paths define shapes. Shapes can be filled, stroked, or both. The painting color can be opaque or have a degree of transparency. Lines can be solid or dashed. Clipping determines which portions of drawing are visible. Drawing can be scaled and otherwise transformed. PDF documents can be treated as a single graphic element but can themselves be arbitrarily complex.
The basic operations available in Quartz produce results that would be difficult to obtain using most other imaging systems. This chapter contains relatively simple examples that illustrate basic drawing operations. Subsequent chapters build on the concepts ...
Get Programming with Quartz now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.