Draw an image in Additive Blend mode without using OpenGL

I want to draw an image using additive blending mode. But I do not want to use OpenGL. I can’t find anything, maybe something in Quartz2D?

Can someone point me in the right direction?

Cheers, Rich

+3
source share
1 answer

Of course, there is a CGBlendMode enumeration that you can use to specify a blend operation. usage method:

CGContextSetBlendMode()

or

[image drawInRect:CGRectMake(0, 0, width, height) blendMode:mode alpha:1];

more on the developer's site: link text

+6
source

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


All Articles