Modifying Drawing
There are several ways to modify how things are drawn by Quartz. The NSBezierPath object itself allows a developer to modify several parameters that affect how a given path is rendered. Translating, rotating, scaling, and shearing a path with the NSAffineTransform class can affect the actual geometry. Finally, the NSGraphicsContext class allows a developer to modify a few global rendering options and control drawing. The NSBezierPath options are covered in this section. The other two classes are discussed in Chapter 13.
NSBezierPath Parameters
When a path is rendered, there are several parameters that can be set in the current graphics context that affect the rendering process. The first and most obvious is the current color. ...
Get Cocoa® Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.