在视频上添加透明按钮 [英] Add the transparent button on the video

查看:231
本文介绍了在视频上添加透明按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

How to add a transparent controls on the video? winform,I am using vlcplayer broadcast video

推荐答案

没问题,如果你切换到WPF。根本不是问题。一些背景:WPF和视频都基于DirectX,其中所有内容都可以叠加在所有内容上,也可以是透明的。



如果你想留下怎么办?使用 System.Windows.Forms 并且仍然使用视频和透明度...很难做出更糟糕的决定。这是可能的,但非常困难。基于Windows API和GDI +的Forms的整体性质与之相反。你想要可能不值得努力的问题吗?您可以在低级别使用DirectX。要在视频上放置半透明图像,您必须使用所谓的叠加管理器。 GDI +拒绝...



因此,真正的,而不是过度变态的解决方案是WPF。该播放器可用: System.Windows.Media.MediaPlayer

http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.aspx [ ^ ]。



VCL因为广播软件仍然可以使用。作为控制?我真的不知道。至少我可以使用该软件的某些部分,从它基于ffMpeg / libavcodec的事实开始;坦率地说,Windows Media Player功能集在ffMpeg / libavcodec旁边看起来很荒谬......



-SA
No problem, if you switch to WPF. Not a problem at all. Some background: WPF, as well as video, is based on DirectX, where everything can be superimposed on everything and be transparent or not.

What if you want to stay with System.Windows.Forms and still work with both video and transparency… it's hard to imaging worse decision. It is possible, but very difficult. The whole nature of Forms, which is based on Windows API and GDI+ works against it. Do you want problems which probably won't worth the effort? You could use DirectX on low level. To put a semi-transparent image over video, you will have to use so called overlay manager. GDI+ resists…

So, the real, not overly perverted solution is WPF. The player is available: System.Windows.Media.MediaPlayer:
http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.aspx[^].

VCL as the broadcast software still can be used. As the control? I don't know exactly, really. At least some part of this software can be used, I'm sure, starting from the fact the it's based on ffMpeg/libavcodec; frankly, Windows Media Player feature set looks simply ridiculous next to ffMpeg/libavcodec…

—SA


这篇关于在视频上添加透明按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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