AlphaBlend透明位图粘贴

 

 BLENDFUNCTION bf;

bf.BlendOp = AC_SRC_OVER;

bf.BlendFlags = 0;

bf.SourceConstantAlpha = 128;

bf.AlphaFormat = 0;

AlphaBlend(hdc, 100, 100, 120, 60, hMemDC, 0, 0, 120, 60, bf);

bf.SourceConstantAlpha最重要,它显示alpha透明值。

你可能感兴趣的:(AlphaBlend透明位图粘贴)