Windows Media Player Control (winforms) - 将当前帧捕获为位图?
我在 winforms 应用程序中使用 Windows Media Player 控件,我想定期将播放帧捕获到位图中并将其保存在本地。 WMP 是否会暴露当前播放帧?当然,WMP 库应该公开当前帧,但我已经到处寻找它但无济于事......请帮助。
ps 我正在寻找一种比捕获屏幕并裁剪它的黑客方法更优雅的方法。
I am using Windows Media Player control in a winforms app, I would like to periodically capture the playing frame into a bitmap and save it locally. Does WMP expose the current playing frame? Surely the WMP librarty should expose the current frame, but I have looked all over for it to no avail...pls help.
p.s. I am looking for a more elegant approach than the hack method of capture the screen and cropping it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/994554ec-219e-4090-9ddf-befd51bd4912
答案是使用 DrawingVisual、DrawingConext和渲染目标位图。上面对此进行了一些讨论。
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/994554ec-219e-4090-9ddf-befd51bd4912
The answer is to use a DrawingVisual, DrawingConext and RenderTargetBitmap. Some discussion of it above.