如何使用DirectShow设置屏幕捕获区域? [英] How to set the screen capture region using DirectShow?

查看:95
本文介绍了如何使用DirectShow设置屏幕捕获区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Directshow创建视频播放器,将桌面屏幕显示为视频(使用UScreenCapture过滤器)。我可以在执行之前通过UScreenCapture过滤器的属性更改捕获区域。我想在我的vc ++代码中动态更改桌面捕获区域的位置。我怎么能这样做??



图表中的过滤器:UScreenCapture-> VideoRenderer。



感谢你,

Am Creating the video player using Directshow which will display the Desktop screen as the video (using UScreenCapture filter). I can change the capture region through the properties of the UScreenCapture filter before execution. I want to change the position of the desktop capture region dynamically in my vc++ code. How can i do that!?

Filters in the Graph : UScreenCapture->VideoRenderer.

Thanking you,

推荐答案

你应该知道该过滤器的COM接口,如果用于通过属性页面进行配置。如果过滤器嵌入了类型库,您可以轻松地看到控制界面(例如,在菜单中选择加载类型库,在OLE COOM对象查看器工具中),如果过滤器没有公开类型库 - 您应该为过滤器供应商aqsk进行接口声明和/或文档。



Maxim。
You should know COM interface for that filter which if used for configuring it via property pages. If filter have typelibrary embedded you can easy see the controlling interface (for example in OLE COOM Object viewer tool by choosing load typelibrary in menu), if filter does not expose typelibrary - you should aqsk the filter vendor for interface declaration and/or documentation.

Maxim.


这篇关于如何使用DirectShow设置屏幕捕获区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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