CxImage使用掩碼色設(shè)置透明色的圖
CxImage設(shè)置透明色的方法:
void SetImageTransColor( CxImage* pImg, BYTE R, BYTE G, BYTE B )
{
if (pImg == NULL) return;
if (pImg->GetTransIndex() != 24)
{
pImg->IncreaseBpp(24);
}
pImg->SetTransIndex(0);
RGBQUAD rgbTrans = {B, G, R, 0};
pImg->SetTransColor(rgbTrans);
}posted on 2012-11-01 15:05 楊粼波 閱讀(2829) 評(píng)論(1) 編輯 收藏 引用 所屬分類: 學(xué)習(xí)筆記 、C++ 、Windows



