开发者

Windows Media Player Control (winforms) - capture current frame as bitmap?

开发者 https://www.devze.com 2023-02-25 15:33 出处:网络
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 t

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开发者_Go百科.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号