Chapter 4. The Graphics Context
A Core Graphics drawing context, or CGContext, is the fundamental connection that Quartz 2D forges between your application and a graphics device. The system creates contexts for devices as diverse as an inexpensive black and white inkjet printers to a large, high resolution, color displays. In spite of the differences between the devices, the CGContexts provide a single drawing API that is common to both contexts. In most instances, your application need only concern itself with how to use this abstract drawing API and can leave the details of the underlying drawing destination to the system.
The graphics context is a central player in the Quartz 2D API and we spend quite some time in later chapters discussing specific ...
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