There are some basic similarities between drawing in QuickDraw and Quartz. Drawing, whether in QuickDraw or Quartz, involves obtaining a preconfigured drawing environment, specifying the geometry of shapes, and applying color to shape outlines, interiors, or both. But there are many differences that you will want to be aware of.
One important difference is that QuickDraw does not always make a clear distinction between specifying the geometry of an object and drawing the object. For example, you can’t specify lines, ovals, or rounded rectangles without drawing them. In Quartz, there is a clean separation between constructing an object (operations such as adding a rectangle to a path or creating a shading) and drawing the object (operations such as stroking and filling the path or drawing the shading).
There are many other differences. This chapter discusses basic drawing issues and how to accomplish a variety of drawing tasks using Quartz.
“Coordinate Space” describes the QuickDraw, Quartz, and HIView coordinate systems, and how to convert between QuickDraw and Quartz coordinates.
“Drawing Destinations” compares QuickDraw and Quartz destinations and provides references to code examples that shows how to obtain graphics contexts.
“Graphics State and Global Effects” lists the Quartz graphics state parameters.
“Color Blend Modes” discusses how paint is composited to a background in Quartz and provides examples of using blend modes to colorize one image and draw a portion of another.
“Alternatives to QuickDraw Drawing Functions” lists many QuickDraw region functions and suggests alternative functions in Quartz.
“Constructing and Drawing Shapes” shows how to construct and draw two-dimensional shapes in Quartz and provides emulation routines for many QuickDraw functions.
“Converting an Arbitrary QuickDraw Region to a Quartz Path” provides a generalized routine for handling region conversions.
“Anti-aliasing” describes what it is in Quartz and what settings affect it.
“Clipping” compares QuickDraw and Quartz clipping and shows how to use clipping to draw the intersection and difference of two shapes.
Last updated: 2006-09-05