社区
界面
帖子详情
如何实现在播放视频的窗口上面加上一层透明窗口,并可在透明窗口绘图??
ronaldo07
2008-12-24 10:01:21
如何实现在播放视频的窗口上面加上一层透明窗口,并可在透明窗口绘图??
本人加上一层透明窗体后,透明窗体不能响应鼠标消息,如果不完全透明,因为有后面的视频,会闪烁?请问有其他方法吗???急。。
高分请教!!!
...全文
597
8
打赏
收藏
如何实现在播放视频的窗口上面加上一层透明窗口,并可在透明窗口绘图??
如何实现在播放视频的窗口上面加上一层透明窗口,并可在透明窗口绘图?? 本人加上一层透明窗体后,透明窗体不能响应鼠标消息,如果不完全透明,因为有后面的视频,会闪烁?请问有其他方法吗???急。。 高分请教!!!
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
8 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
dd_zhouqian
2009-09-09
打赏
举报
回复
果然,我刚把显卡的硬件加速关了,暴风上可以透明了。原来是黑色的。
不过我自己directshow显示的视频,不管是否关闭硬件加速,都能让透明,但是同时伴有闪烁。
wyxz555
2009-08-02
打赏
举报
回复
同样的问题,关注中
zzz822163
2008-12-24
打赏
举报
回复
看看http://www.codeproject.com/KB/audio-video/VideoPicture.aspx
ronaldo07
2008-12-24
打赏
举报
回复
[Quote=引用 1 楼 fandh 的回复:]
是做视频转换吧,是不是想在试用版本中间加上提示或者什么的?
透明可以使用GDI+画,直接在上面画,鼠标响应,可以就用播放窗体的透明窗体!
[/Quote]
不是视频转换,是视频写屏,但是加透明窗口会闪
ronaldo07
2008-12-24
打赏
举报
回复
差不多想视频写屏,但可以是不同层的。
蒋晟
2008-12-24
打赏
举报
回复
要是视频播放器直接写屏的话就没有办法。
fandh
2008-12-24
打赏
举报
回复
是做视频转换吧,是不是想在试用版本中间加上提示或者什么的?
透明可以使用GDI+画,直接在上面画,鼠标响应,可以就用播放窗体的透明窗体!
ronaldo07
2008-12-24
打赏
举报
回复
[Quote=引用 5 楼 zzz822163 的回复:]
看看http://www.codeproject.com/KB/audio-video/VideoPicture.aspx
[/Quote]
那种效果不好,要是显示位图还好。
Qt视频
窗口
重叠
透明
窗口
,区域截图代码示例
该示例演示Qt在视频
窗口
上,叠加
一层
透明
窗口
,然后在
透明
窗口
上画出截图框的方法。
GLSurfaceViewDemo:采用GLSurfaceView
播放视频
,并作了分层隔离
GLSurfaceViewDemo 采用自定义GLSurfaceView
播放视频
,并作了分层隔离
Pro WPF in C# 2010 Mar 2010
Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4 1216 pages Publisher: Apress; 3 edition (March 31, 2010) Language: English ISBN-10: 1430272058 ISBN-13: 978-1430272052 Microsoft's Windows Presentation Foundation (WPF) provides the foundation for building applications and high-quality user experiences for the Windows operating system. It blends the application user interface, documents, and media content, while exploiting the full power of your computer's operating system. Its functionality extends to the support for Tablet PCs and other forms of input device, and it provides a more modern imaging and printing pipeline, accessibility and UI automation infrastructure, data-driven UIs and visualization, and integration points for weaving the application experience into the Windows shell. This book shows you how WPF really works. It provides you with the no-nonsense, practical advice that you need in order to build high-quality WPF applications quickly and easily. After giving you a firm foundation, it goes on to explore the more advance aspects of WPF and how they relate to the others elements of the .NET 4.0 platform and associated technologies such as Silverlight. What you'll learn WPF basics: XAML, layout, control essentials, and data flow WPF applications: Navigation, commands, localization, and deployment Advanced controls: Custom controls, menus, toolbars, and trees WPF documents: Text layout, printing, and document packaging Graphics and multimedia: Drawing shapes, sound and video, animation, geometric transformations, and imaging Chapter 1: Introducing WPF describes the architecture of WPF, its DirectX plumbing, and the new device-independent measurement system that resizes user interfaces automatically. Chapter 2: XAML describes the XAML standard that you use to define user interfaces. You’ll learn why it was created and how it works, and you’ll create a basic WPF window using different coding approaches. Chapter 3: Layout delves into the layout panels that allow you to organize elements in a WPF window. You’ll consider different layout strategies, and you’ll build some common types of windows. Chapter 4: Dependency Properties describes how WPF uses dependency properties to provide support for key features such as data binding and animation. Chapter 5: Routed Events describes how WPF uses event routing to send events bubbling or tunneling through the elements in your user interface. It also describes the basic set of mouse, keyboard, and multitouch events that all WPF elements support. Chapter 6: Controls considers the controls every Windows developer is familiar with, such as buttons, text boxes, and labels–and their WPF twists. Chapter 7: The Application introduces the WPF application model. You’ll see how to create single- instance and document-based WPF applications. Chapter 8: Element Binding introduces WPF data binding. You’ll see how to bind any type of obje to your user interface. Chapter 9: Commands introduces the WPF command model, which allows you to wire multiple controls to the same logical action. Chapter 10: Resources describes how resources let you embed binary files in your assembly and reuse important objects throughout your user interface. Chapter 11: Styles and Behaviors explains the WPF style system, which lets you apply a set of common property values to an entire group of controls. Chapter 12: Shapes, Brushes, and Transforms introduces the 2-D drawing model in WPF. You’ll learn to create shapes, alter elements with transforms, and paint exotic effects with gradients, tiles and images. Chapter 13: Geometries and Drawings delves deeper into 2-D drawing. You’ll learn to create complex paths that incorporate arcs and curves and how to use complex graphics efficiently. Chapter 14: Effects and Visuals describes lower-level graphics programming. You’ll apply Photoshop-style effects with pixel shaders, build a bitmap by hand, and use WPF’s visual layer for optimized drawing. Chapter 15: Animation Basics explores WPF’s animation framework, which lets you integrate dynamic effects into your application using straightforward, declarative markup. Chapter 16: Advanced Animations explore more sophisticated animation techniques like key-fram animation, path-based animation, and frame-based animation. You’ll also consider a detailed example that shows how to create and manage dynamic animations with code. Chapter 17: Control Templates shows you how you can give any WPF control a dramatic new look (and new behavior) by plugging in a customized template. You’ll also see how templates allow you to build a skinnable application. Chapter 18: Custom Elements explores how you can extend the existing WPF controls and create your own. You’ll see several examples, including a template-based color picker, a flippable panel, custom layout container, and a decorator that performs custom drawing. Chapter 19: Data Binding shows you how to fetch information from a database, insert it into a custom data objects, and bind these objects to WPF controls. You’ll also learn how to improve the performance of huge data-bound lists with virtualization, and catch editing mistakes with validation. Chapter 20: Formatting Bound Data shows some of the tricks for turning raw data into rich data displays that incorporate pictures, controls, and selection effects. Chapter 21: Data Views explores how you use the view in a data-bound window to navigate through a list of data items, and to apply filtering, sorting, and grouping. Chapter 22: Lists, Grids, and Trees gives you a tour of WPF’s rich data controls, including the ListView, TreeView, and DataGrid. Chapter 23: Windows examines how windows work in WPF. You’ll also learn how to create irregularly shaped windows and use Vista glass effects. You’ll also make the most of Windows 7 features by customizing taskbar jump lists, thumbnails, and icon overlays. Chapter 24: Pages and Navigation describes how you can build pages in WPF and keep track of navigation history. You’ll also see how to build a browser-hosted WPF application that can be launched from a website. Chapter 25: Menus, Toolbars, and Ribbons considers command-oriented controls such as menus and toolbars. You’ll also get a taste of more modern user interface with the freely downloadable Ribbon control. Chapter 26: Sound and Video describes WPF’s media support. You’ll see how to control playback for sound and video, and how to throw in synchronized animations and live effects. Chapter 27: 3-D Drawing explores the support for drawing 3-D shapes in WPF. You’ll learn how to create, transform, and animate 3-D objects. You’ll even see how to place interactive 2-D controls on 3-D surfaces. Chapter 28: Documents introduces WPF’s rich document support. You’ll learn to use flow documents to present large amounts of text in the most readable way possible, and you’ll use fixed documents to show print-ready pages. You’ll even use the RichTextBox to provide document editing. Chapter 29: Printing demonstrates WPF’s printing model, which lets you draw text and shapes in a print document. You’ll also learn how to manage page settings and print queues. Chapter 30: Interacting with Windows Forms examines how you can combine WPF and Windows Forms content in the same application–and even in the same window. Chapter 31: Multithreading describes how to create responsive WPF applications that perform time-consuming work in the background. Chapter 32: The Add-In Model shows you how to create an extensible application that can dynamically discover and load separate components. Chapter 33: ClickOnce Deployment shows how you can deploy WPF applications using the ClickOnce setup model.
Qt视频
窗口
重叠
透明
窗口
及区域截图代码示例
Qt视频
窗口
重叠
透明
窗口
及区域截图代码示例 去发现同类优质开源项目:https://gitcode.com/ 简介 本资源文件提供了一个基于Qt的示例代码,演示了如何在视频
窗口
上叠加
一层
透明
窗口
,并在
透明
窗口
上绘制截图框的方法。通过这个示例,您可以学习如何在Qt中
实现
视频
窗口
的
透明
叠加以及区域截图功能。 功能描述 视频
窗口
叠加
透明
窗口
:在视频播放
窗口
上叠加
一层
透明
的
窗口
,使得视频内容可以透过
透明
...
Qt 视频
窗口
的鼠标操作,使用
透明
窗口
覆盖视频
窗口
,可在
透明
窗口
上使用鼠标做类似区域截屏操作。
使用Qt控件(例如QWidget或QLabel)做视频播放,当需要在视频上画框或者画点线做标记时,一般无法直接在播放的控件上画出。在正在播放的视频
窗口
,画一个小于视频
窗口
的区域,然后截取该区域保存至图片,是一个很常见的抓拍需求。 这个时候的思路是在正在
播放视频
的
窗口
叠加
一层
窗口
,将该叠加
窗口
设置为
透明
,设置一些基本
窗口
属性,重写其paintEvent()事件。当鼠标进入视频
窗口
后,显示这个
透明
窗...
界面
15,978
社区成员
115,866
社区内容
发帖
与我相关
我的任务
界面
VC/MFC 界面
复制链接
扫一扫
分享
社区描述
VC/MFC 界面
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章