Since it came up before...I thought I would ask.
What is the best way to do an alpha blend.
I have a 16BIT RGB565 image, and an 8BIT Alpha Mask. I look at it in a few parts.
1) I figure that I need to take the alpha as a % so it's something like this - src = 255/Alpha; dest = 1 - src;
2) Its multiplied per color, so I need to take the src pixel and do the mult per color, and then the dest pixel and do the mult per color and then add them together to get the result.
Am I way off here? The result is weird looking....maybe I haven't thought about it enough....
What is the best way to do an alpha blend.
I have a 16BIT RGB565 image, and an 8BIT Alpha Mask. I look at it in a few parts.
1) I figure that I need to take the alpha as a % so it's something like this - src = 255/Alpha; dest = 1 - src;
2) Its multiplied per color, so I need to take the src pixel and do the mult per color, and then the dest pixel and do the mult per color and then add them together to get the result.
Am I way off here? The result is weird looking....maybe I haven't thought about it enough....