拉伸AxWindowsMediaPlayer的视频而无需在C

拉伸AxWindowsMediaPlayer的视频而无需在C

本文介绍了拉伸AxWindowsMediaPlayer的视频而无需在C#中保持宽高比的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 AxWindowsMediaPlayer ,我需要拉伸视频以占据整个屏幕. stretchToFit = true 的问题在于, stretchToFit 保持视频的长宽比,如果视频或显示器的长宽比不同,则会创建黑条.我不要这些黑条.拉伸视频时,我不想保持宽高比.

Using the AxWindowsMediaPlayer I need to stretch a video to take up the entire screen. The issue with stretchToFit = true, is that stretchToFit maintains the aspect ratio of the video, creating blackbars if the video or monitor is not of the same ratio. I do not want these black bars. I do not want to maintain the aspect ratio when I stretch the video.

我很久以来一直在寻找这个问题的答案,并且阅读了无数其他人提出的问题.据我所知,没有人有任何解决方案.

I have been looking for an answer to this problem for a long time and have read countless questions posed by others. As far as I can tell, no one has any solution.

*尽管存在,因为另一个问题是一年前发布的,没有答案.

*I am posting this question despite there being an exact question already posted since the other question was posted a year ago with no answers.

推荐答案

WMP不允许在不保持宽高比的情况下拉伸视频.

WMP doesn't allow stretching of the video without maintaining the aspect ratio.

这篇关于拉伸AxWindowsMediaPlayer的视频而无需在C#中保持宽高比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!