Additive Mixing with Core Graphics

How can I compose two images in additive blending mode with Core Graphics?

The listing does not have something like kCGBlendModeAdd : http://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGBlendMode

Any solution?

+4
source share
1 answer

What is wrong with kCGBlendModePlusLighter ?

From a linked document:

 R = MIN(1, S + D) 

So this is additive mixing limited to 1.0.

+6
source

Source: https://habr.com/ru/post/1382354/


All Articles