Closed RaihanFaruque closed 4 years ago
The major issue is not the formula you are using.
Hint 1: what is the alpha for an opaque pixel ? Hint 2: its not 255.
May not be related to your problem, but with the first formula example, I initially got a similar looking image just by forgetting to make sure I was using floats/doubles when normalizing my alpha values, so that they all just turned into zeros (alpha_a and alpha_b).
Thank you. It works after I divided by 255.0
When I used this formula in wikipedia page
I set the resulting alpha to 255;
This is the result I got:
When I use this formula: I get this result:
Not sure what is causing the problem