O'Reilly logo

Programming with Quartz by Bunny Laden, David Gelphman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required