显示带有透明度的全屏图像 [英] Display Full Screen Image w/Transparency

查看:116
本文介绍了显示带有透明度的全屏图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我迫切需要一个可执行文件,它会显示一个带有alpha透明度全屏的.png,没有窗口/边框,同时在它下面运行一个视频应用程序,然后可以用击键组合关闭它。我尝试使用HTA,但它不能为我提供这些功能。任何想法?

I am in desperate need of an executable file that will display a .png with alpha transparency fullscreen with no window/border while running a video application beneath it which can then be closed with a keystroke combination. I tried using HTA but it won''t offer me either of these features. Any ideas?

推荐答案

创建弹出窗口。

创建并加载位图。

例如单色:



0001100

0011110

0111110

0111110



所以你必须逐行创建像素= 1的矩形区域并与主区域(CombineRgn)结合。

http://msdn.microsoft.com/en-us/library/windows/desktop/dd183465(v= vs.85).aspx [ ^ ]

使用后功能SetWindowRgn

http://msdn.microsoft.com/en-us/library/aa930600.aspx [ ^ ]
Create popup window.
Create and load bitmap.
For example monochrome:

0001100
0011110
0111110
0111110

So you must line by line create rectangle region with pixel = 1 and combine with main region (CombineRgn ).
http://msdn.microsoft.com/en-us/library/windows/desktop/dd183465(v=vs.85).aspx[^]
After use function SetWindowRgn
http://msdn.microsoft.com/en-us/library/aa930600.aspx[^]


这篇关于显示带有透明度的全屏图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆