Chapter 4. Drawing and Imaging
The Application Kit has a diverse set of
graphics classes. These classes range from
NSQuickDrawView, which lets developers use legacy
graphics code based on the QuickDraw APIs in their Cocoa application,
to NSOpenGLView, which provides a way to display
OpenGL-based 3D graphics. The focus of this chapter, however, is on
the 2D drawing and imaging classes that provide a high-level
interface to Mac OS X’s graphics system, Quartz.
Table 4-1 enumerates the
classes discussed in this chapter.
|
Class |
Description |
NSAffineTransform |
Defines an interface for creating and applying affine transforms that map points in one coordinate space to another |
NSBezierPath |
Draws PostScript-style lines and curves that enable the construction of arbitrary paths |
NSBitmapImageRep |
Interprets bitmapped image data, such as those stored as TIFF, BMP, GIF, JPEG, or PNG file types |
NSCachedImageRep |
Stores image data as a cached representation |
NSColor |
Represents a color as an object with support for several color spaces and color calibration |
NSCustomImageRep |
An image representation that allows the client to determine how the image is rendered |
NSEPSImageRep |
An image representation subclass that represents PostScript (EPS) formatted image data |
NSGraphicsContext |
Represents configurations for Quartz’s graphics rendering engine and allows the client to determine how characteristics of graphics objects, such as Bezier paths, ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access