Written by members of the development team at Apple, Programming with Quartz is the first book to describe the sophisticated graphics system of Mac OS X. By using the methods described in this book, developers will be able to fully exploit the state-of-the-art graphics capabilities of Mac OS X in their applications, whether for Cocoa or Carbon development. This book also serves as an introduction to 2D graphics concepts, including how images are drawn and how color is rendered. It includes guidance for working with PDF documents, drawing bitmap graphics, using Quartz built-in color management, and drawing text. Programming with Quartz is a rich resource for new and experienced Mac OS X developers, Cocoa and Carbon programmers, UNIX developers who are migrating to Mac OS X, and anyone interested in powerful 2D graphics systems.
Ch. 1Introducing Quartz 2D1Ch. 2Quartz 2D drawing basics15Ch. 3Using Quartz 2D in cocoa45Ch. 4Using Quartz 2D in carbon65Ch. 5The Quartz coordinate system and coordinate transformations83Ch. 6Drawing with paths103Ch. 7Color, alpha transparency, and the Quartz graphics state147Ch. 8Data providers and data consumers185Ch. 9Drawing images203Ch. 10Image masking263Ch. 11Text289Ch. 12Creating bits345Ch. 13Opening and drawing PDF documents397Ch. 14Creating and examining PDF documents435Ch. 15Advanced drawing features481Ch. 16Supporting PostScript and EPS data565Ch. 17Performance and debugging593Ch. 18Creating Quartz tools and python scripts631