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 6 Drawing with Paths

All Quartz drawing falls into of one of three fundamental categories: line art (graphics that consist of paths that are filled, stroked, or both), sampled images, and text. Understanding how to draw with paths and the way Quartz paints them is a key part of understanding the Quartz imaging model.

Quartz paths are mathematical descriptions. A path can consist of straight-line segments and Bézier curve segments– both quadratic and cubic. Primitive path construction functions add these types of segments to create a path. In addition, Quartz has a number of convenience functions to add path segments for the most common shapes. Paths are constructed separately from painting them. You can fill, stroke, or fill and stroke ...

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