How can I adjust the video to a specified size in VMR9 renderless mode?

帅比萌擦擦* 提交于 2019-12-08 23:30:31

Not sure if this would help you, but have you looked at the VMR's windowless mode? You can specify the handle for a window (such as a UserControl) to show the video. On the IVMRWindowlessControl9 interface, you can call GetNativeVideoSize to get the native window size and set the size from there and then call SetVideoPosition to specify where the video should go. In my case, I am using the ClientRectangle of the UserControl as the destination rectangle and the native video size as the source rectangle.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!