Tommi
10-20-2003, 02:29 PM
Hey folks,
I'm just fiddling around, creating a 2D graphics lib under Windows based on 32-Bit DIBs.
I'll make it short - I want to alpha blend a new pixel with an underlying pixel.
I've actually already written that routine, but there's following problem. The underlying pixel already has it's own alpha value and there's another "Master-Alpha" value, which is supposed to generally determine the transparency of all drawing functions.
I guess I need to adjust the "new pixel's" alpha value according to the master alpha value and then blend this result together with the alpha value of the underlying pixel... but how?
I'm braindead when it comes to maths and the invaluable google groups search is currently down :annoyed:
I'd appreciate any kind of help and hints,
Thanks in advance :)
I'm just fiddling around, creating a 2D graphics lib under Windows based on 32-Bit DIBs.
I'll make it short - I want to alpha blend a new pixel with an underlying pixel.
I've actually already written that routine, but there's following problem. The underlying pixel already has it's own alpha value and there's another "Master-Alpha" value, which is supposed to generally determine the transparency of all drawing functions.
I guess I need to adjust the "new pixel's" alpha value according to the master alpha value and then blend this result together with the alpha value of the underlying pixel... but how?
I'm braindead when it comes to maths and the invaluable google groups search is currently down :annoyed:
I'd appreciate any kind of help and hints,
Thanks in advance :)
