How to Change the Video Size Whe
2020-10-19 本文已影响0人
stnevermore
I have faced an issue yesterday, I can't change the video graph by keeping a fixed a ratio. The original graph is as below:
![](https://img.haomeiwen.com/i3053840/70b3badc9b4afe4f.png)
However, I change the UserControl' size, it shows as this:
![](https://img.haomeiwen.com/i3053840/e658d11c7bf339b0.png)
I know the window just shrinks, but the graph is only part of the original image. I used many ways to solve the problem but failed until I searched the answer
Directshow video player change the player size ,I know there is a method like MainForm_ResizeMove from the DirectShow samples. I use some key words to search the sample codes by Everything and find MoveVideoWindow function. I know it must reset the window position (Call SetWindowPosition function). Then, It works.