Chapter 9 Drawing Images

A bitmap image is a rectangular array of image samples (also called pixels), with each sample representing a single color value at a particular location in the image. There are a wide variety of sources of images. Digital cameras produce bitmap photographic images directly. Digital scanners can produce images from a wide variety of source material. Quartz produces bitmap image data when it renders to a bitmap context. Pixel painting programs produce images through human interaction. Images can be produced synthetically, such as with special-purpose rendering software to algorithmically produce a rendered scene. Figure 9.1. illustrates a few different image sources.

Figure 9.1 Images come from many sources, such as photographs, ...

Get Programming with Quartz 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.