Quartz 2D Graphics for Mac OS X Developers

R. Scott Thompson

  • 出版商: Addison Wesley
  • 出版日期: 2006-04-01
  • 售價: $2,170
  • 貴賓價: 9.5$2,062
  • 語言: 英文
  • 頁數: 352
  • 裝訂: Paperback
  • ISBN: 0321336631
  • ISBN-13: 9780321336637
  • 相關分類: MAC OS 蘋果電腦
  • 已絕版

買這商品的人也買了...

相關主題

商品描述

Description  

A Hands-On Guide and Introduction to Quartz 2D

 

On Mac OS X, Macintosh developers depend on the graphics and imaging frameworks of the Core Graphics system to implement multimedia features in their applications. With Core Graphics Apple has answered the increasing demands of graphics developers with a powerful collection of tools, including Quartz 2D and Core Image. Quartz 2D is a modern drawing API with a powerful imaging model. Beginning with Mac OS X 10.4, Tiger, Quartz 2D replaces the QuickDraw® graphics library in legacy applications and provides the functionality developers need to take advantage of the latest hardware.

 

Quartz 2D Graphics for Mac OS X® Developers is a hands-on guide and introduction to Quartz 2D. Differences between the interfaces and features of QuickDraw and Quartz 2D are making the switch challenging for developers. Through in-depth practical coverage, Mac developer and consultant Scott Thompson leads you smoothly through the transition and sets you on the path to developing cutting edge graphics in Core Image.

 

Through this invaluable guide, you will learn how to

  • Forge connections between Quartz 2D and graphics devices using CGContexts
  • Simplify the drawing process using transformations
  • Draw line art using path-drawing operations on Bezier paths
  • Use pixel data to create images
  • Import and export images from Quartz 2D with Image I/O and QuickTime
  • Generate text and implement special text effects
  • Draw in offscreen environments, such as CGLayers and offscreen bitmaps
  • Create shadings and patterns
  • Create PDFs from Quartz 2D drawings or import PDFs into your drawings

 

If you depend on QuickDraw for your graphics needs, or are interested in a system that pushes the envelope in computer graphics, now is the time to make the switch to Core Graphics (Quartz 2D, Core Image). This is the book that walks you through that change–step-by-step!

 

The companion CD-ROM contains projects and source code covered in this book so you can run each sample. The samples demonstrate how to call Quartz 2D from both Carbon and Cocoa applications as well as from Mac OS X’s Python scripting interface.

 

Table of Contents

Preface  xv

 

Chapter 1: Getting Started  1

Chapter 2: From QuickDraw to Quartz 2D  15

Chapter 3: Introduction to Quartz 2D  37

Chapter 4: The Graphics Context  69

Chapter 5: Transformations  103

Chapter 6: Line Art–Building Paths  135

Chapter 7: Line Art–Drawing  163

Chapter 8: Image Basics  177

Chapter 9: Importing and Exporting Images  211

Chapter 10: Drawing with Core Image  223

Chapter 11: Drawing Text with Quartz 2D  249

Chapter 12: Drawing Offscreen  265

Chapter 13: Shadings and Patterns  277

Chapter 14: Working with PDF  299

 

Index: 313