当前注册人数422990人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB Android   站内搜索 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Transparent Desktop Video

C#实现透明桌面视频播放源代码

2007年12月12日
C#Win2K, WinXP, Win2003, .NET 1.1, WinForms, VS.NET2003, Dev
本程序是一个简单的WinForm程序,它实现了透明地播放视频,也就是说你在看视频的同时,不影响你对其它应用程序的任何操作。视频数据源可以来自一个视频文件或在线捕捉设备。
相关知识

最早这是思想实现与MacOS X系统上,被称之为FaceTop。

[DllImport("user32.dll", SetLastError=true)]
        static extern int GetWindowLong(IntPtr hWnd, int nIndex);
        [DllImport("user32.dll", SetLastError=true)]
        static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);

        private const int  GWL_EXSTYLE = -20;
        private const int  WS_EX_TRANSPARENT = 0x20;

        private void VideoPlayer_Load(object sender, System.EventArgs e)
        {
            // Add WS_EX_TRANSPARENT style so that mouse, keyboard etc. events pass

            // thru us.

            int exstyle = GetWindowLong(this.Handle, GWL_EXSTYLE);
            exstyle |= WS_EX_TRANSPARENT;
            SetWindowLong(this.Handle, GWL_EXSTYLE, exstyle);
        }

源代码原文下载:
Transparent Desktop Video This simple C# WinForms project allows you to playback video from a live capture device or from an existing video file and blend the video using transparency with the existing Windows desktop. The user can still interact with all other application windows "through" the playing video stream.

源码图片

点击链接查看大图
从本站下载附件及源代码(1个附件,已经成功下载1524次)

最值得关注的外文源代码

Motion Detection Algorithms
Fading Forms In and Out
ASP.NET Transparent GIF Source Code
DirectX Board Game Engine
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论249次,此处显示最近20次评论! 查看所有评论

sw@  2022年12月29日
不错
雷鸣之秋  2017年03月18日
不错
雷鸣之秋  2017年03月12日
可以 不错
zm4317209  2017年01月20日
感觉还可以感觉还可以
zsspri  2016年10月18日
谢谢分享
zsspri  2016年10月18日
谢谢分享
huixu5663  2016年08月31日
kankan
fireya  2016年08月02日
下载下来看看是怎么实现的
hello mike  2016年04月18日
很好
小吉  2014年12月22日
谢谢分享
阿笨  2014年06月17日
很酷的东西
彼岸  2014年05月21日
有意思,不错的功能
彼岸  2014年05月21日
有意思,不错的功能
么有蜡笔的小新  2014年03月28日
看看 学习下
若柳芊妍  2014年03月28日
谢谢
wusta  2014年01月29日
这个很有意思的东西,一直想用好
yan  2013年12月31日
这个不是现在都有属性 了么?
cucTony  2013年12月17日
学习学习
cucTony  2013年12月15日
不错,学习了
hexing  2013年10月02日
好!!!!!!
字数在300字内
请如实评论
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明