Overlay Algorithm w/ Alpha Value

BlitzMax Forums/BlitzMax Programming/Overlay Algorithm w/ Alpha Value

Ked(Posted 2015) [#1]
Hi!

I'm having trouble finding an overlay algorithm that takes alpha values into consideration. Does anyone know of any code examples? Google hasn't been my friend on this matter.

Thanks!


markcw(Posted 2015) [#2]
Hey Ked! This not help?

http://stackoverflow.com/questions/26956357/overlaying-pixels-with-alpha-value-in-c-c


Ked(Posted 2015) [#3]
I'm having trouble understanding it since it's in a different programming language.

Obviously, an overlay algorithm will use a mix of screen and multiply depending on the pixel. I just need to know how to factor in that alpha value of the pixel. The algorithms online that supposedly photoshop and gimp use don't have the alpha value shown in the formula.