Chapter 9. Importing and Exporting Images

Computers are riddled with image files in popular formats such as JPEG, PNG, GIF, TIFF, and many others. In addition there are a number of powerful tools available on Mac OS X that graphic artists can use to create image resources for an application. Fortunately, Mac OS X makes it remarkably easy to import many kinds of image files into CGImages that you can draw in your application.

In a similar fashion, it is nice to be able to take the graphics you have created in your application and export them to image files for use by others. The operating system also includes technologies that let you take the images your application creates and export them into graphics files on disk.

This chapter looks at two of ...

Get Quartz 2D Graphics for Mac OS X® Developers 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.