I have a color A that I’d like to transform into color C, by using color B. So I’d like to know the blending formula F in GDI+, where F = F(A, B) = C. A is the “bottom color” and B is an overlay color above A, which together with A yields C.
Cheers,
// Magnus
This is called Alpha Blending.
Use the following algorithm for the R, G, and B components, where alpha is between 0 and 1.