Amar Sagoo

13 January 2007

NSCompositingOperation visual quick reference

I have never been able to remember what the different compositing operations in Cocoa's NSImage class do. So whenever I need to use one, I find myself having to read the documentation, which is not particularly easy to understand, because it describes the operations in words rather than graphically.

M. Uli Kusterer has had the same thought. However, I wanted something that would work at a quick glance, at a small size, and that would print easily.

So I decided to fire up OmniGraffle and create this visual quick reference:

You can download it as a PDF here.

Let me know if you find this useful or if you can think of any improvements.


Mike Abdullah said...

Just found this while searching NSCompositingOperation - perfect! thanks.

Amos said...

Since the effects all depend on the source and destination alpha channels, it would help to see the source and destination images composited on some other color, like green, so you can see them.

Otherwise, it's a very handy reference (and I'm not even a Mac or Cocoa programmer :)

Anonymous said...

Its a nice reference. Good job and thanks.