Prova

Page 9

Figures, Tables, and Listings Chapter 1

Overview of Quartz 2D 19 Figure 1-‐1 Figure 1-‐2 Figure 1-‐3 Figure 1-‐4 Figure 1-‐5 Table 1-‐1

Chapter 2

Graphics Contexts 29 Figure 2-‐1 Figure 2-‐2 Figure 2-‐3 Figure 2-‐4 Table 2-‐1 Listing 2-‐1 Listing 2-‐2 Listing 2-‐3 Listing 2-‐4 Listing 2-‐5 Listing 2-‐6

Chapter 3

The painter’s model 20 Quartz drawing destinations 21 Opaque data types are the basis of drawing primitives in Quartz 2D 22 The Quartz coordinate system 24 Modifying the coordinate system creates a mirrored image. 26 Parameters that are associated with the graphics state 24

A view in the Cocoa framework that contains Quartz drawing 30 A PDF created by using CGPDFContextCreateWithURL 32 An image created from a bitmap graphics context and drawn to a window graphics context 39 A comparison of aliased and anti-‐aliasing drawing 41 Pixel formats supported for bitmap graphics contexts 39 Drawing to a window graphics context 30 Calling CGPDFContextCreateWithURL to create a PDF graphics context 32 Calling CGPDFContextCreate to create a PDF graphics context 33 Drawing to a PDF graphics context 34 Creating a bitmap graphics context 37 Drawing to a bitmap graphics context 38

Paths 43 Figure 3-‐1 Figure 3-‐2 Figure 3-‐3 Figure 3-‐4 Figure 3-‐5 Figure 3-‐6 Figure 3-‐7 Figure 3-‐8 Figure 3-‐9 Figure 3-‐10 Figure 3-‐11 Figure 3-‐12 Figure 3-‐13 Figure 3-‐14 Figure 3-‐15 Figure 3-‐16

Quartz supports path-‐based drawing 43 A path that contains two shapes, or subpaths 44 A clipping area constrains drawing 44 Multiple paths; each path contains a randomly generated circle 46 Defining an arc with two tangent lines and a radius 46 Multiple paths; each path contains a randomly generated curve 47 A cubic Bézier curve uses two control points 48 A quadratic Bézier curve uses one control point 48 Multiple paths; each path contains a randomly generated ellipse 49 Multiple paths; each path contains a randomly generated rectangle 50 Examples of line dash patterns 53 Concentric circles filled using different fill rules 55 The rectangles painted in the foreground 56 The rectangles painted in the background 56 Rectangles painted using normal blend mode 57 Rectangles painted using multiply blend mode 57

9 2010-11-19 | © 2001, 2010 Apple Inc. All Rights Reserved.


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.