I am looking to implement a mechanism that combines bitmaps together in a variety of complex ways, using ternary raster operations like you can in Windows.
The idea is to be able to blt an image to a destination using any kind of combination of the source, brush, and destination pixels (source AND destination, source AND brush AND destination, etc.)
This is supported by Windows GDI in what's called Ternary Raster Operations (check out http://msdn.microsoft.com/en-us/library/dd145130(VS.85).aspx). Is it possible that OS X and iOS completely lack this functionality? The only thing I've been able to find are blend modes, but they are not nearly as flexible.
Any ideas?