Images and Bitmaps

Cocoa offers a suite of classes for managing bitmap images. This suite includes the NSImage and NSImageRep classes as well as several different NSImageRep subclasses. This group of classes can be used to decode many common bitmap image file formats (such as TIFF, GIF, JPG, and so on), and load them into memory for further manipulation. There are also facilities for manipulating vector-based images such as PDF. Support can be added for new image file formats, which makes them transparently available to all Cocoa programs via OS X’s Services mechanism. An image can be created from raw byte data or even a drawing subroutine. Images can be further modified and drawn to the screen, or saved to a file or NSData object.

Compositing ...

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.