
如圖所示,我簡單做了個mfc工程,我想要實作圖中合肥工業大學位圖灰色背景透明化,我該怎么做呢?請各位親告訴我詳細教程好嗎?謝謝
uj5u.com熱心網友回復:
WINGDIAPI BOOL WINAPI TransparentBlt(HDC,int,int,int,int,HDC,int,int,int,int,UINT);The TransparentBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.
BOOL TransparentBlt(
HDC hdcDest,
int nXOriginDest,
int nYOriginDest,
int nWidthDest,
int hHeightDest,
HDC hdcSrc,
int nXOriginSrc,
int nYOriginSrc,
int nWidthSrc,
int nHeightSrc,
UINT crTransparent
);
crTransparent
The RGB color in the source bitmap to treat as transparent.
你的 是 白色
uj5u.com熱心網友回復:
簡單的方法就是用PS把圖片做成PNG透明透明, 直接貼圖就可以了。如果使用界面庫的話, 例如炫彩界面庫, 直接通過UI設計器就可以。
如果是MFC, 需要自繪。
uj5u.com熱心網友回復:
建議先學會PS的幾個基本操作。轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/128914.html
標籤:界面
下一篇:如何更新執行緒中呼叫的面板引數,
