Quote:
Originally Posted by Smelter
The easy way is to load the rgb bits of another and blend them.
code:
d.rgbRed = (BYTE) (pSource->rgbRed * pSource->rgbReserved / 256 +
pCheckers->rgbRed * ( 256 - pSource->rgbReserved ) / 256);
|
According to:
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
"rgbReserved" can only be 0? But this makes no sense because it would ALWAYS mean:
(pSource->rgbRed * 0 / 256 + pCheckers->rgbRed * ( 256 - 0 ) / 256);
which would be:
(0 / 256 + pCheckers->rgbRed * 256 / 256);
which is:
(0 + pCheckers->rgbRed);
which is:
(pCheckers->rgbRed);