VS的mfc中如何将位图背景透明化

神爱斯 2016-07-23 11:03:34

如图所示,我简单做了个mfc工程,我想要实现图中合肥工业大学位图灰色背景透明化,我该怎么做呢?请各位亲告诉我详细教程好吗?谢谢
...全文
703 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2016-08-15
  • 打赏
  • 举报
回复
建议先学会PS的几个基本操作。
炫彩界面库 2016-08-14
  • 打赏
  • 举报
回复
简单的方法就是用PS把图片做成PNG透明透明, 直接贴图就可以了。 如果使用界面库的话, 例如炫彩界面库, 直接通过UI设计器就可以。 如果是MFC, 需要自绘。
schlafenhamster 2016-07-23
  • 打赏
  • 举报
回复
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. 你的 是 白色

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧