/FreeImage/Source/FreeImageToolkit/Background.cpp:
blended->rgbRed = (BYTE)( ((WORD)fgcolor->rgbRed * alpha + not_alpha * (WORD)bgcolor->rgbRed) >> 8 ); blended->rgbGreen = (BYTE)( ((WORD)fgcolor->rgbGreen * alpha + not_alpha * (WORD)bgcolor->rgbGreen) >> 8) ; blended->rgbBlue = (BYTE)( ((WORD)fgcolor->rgbRed * alpha + not_alpha * (WORD)bgcolor->rgbBlue) >> 8 );
See at "rgbBlue" line. Seems like should be "fgcolor->rgbBlue" instead of "fgcolor->rgbRed"
Hi,
Thanks for the bug fix, it is now available in the CVS.
Hervé
Fixed in release 3.18.0