您好,我有一个用 Borland C++Builder 制作的应用程序。我正在为此使用 RAD Studio。
在应用程序中有一个带有 TAnimate(视频对象)的 TForm。我想知道是否可以以某种方式拉伸(stretch) TAnimate 对象?
如果我改变对象的大小:
video->Width = newwidth;
video->Height = newheight;
视频没有拉伸(stretch),但视频图像中添加了白色边框。
有什么方法可以缩放视频图像吗?
如果有人告诉我这是不可能的,那也没关系!
也许可以在缩放的 TImage 中转换 TAnimate。
TAnimate 的 autosize 属性不起作用。
最佳答案
TAnimate
只是 Win32 的薄包装器 Animation control ,它没有拉伸(stretch)/缩放视频的选项。甚至 MSDN 也说:
Note The AVI file, or resource, must not have a sound channel. The capabilities of the animation control are very limited and are subject to change. If you need a control to provide multimedia playback and recording capabilities for your application, you can use the MCIWnd control. For more information, see MCIWnd Window Class.
关于c++ - Borland C++ 拉伸(stretch) TAnimate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33298893/