c++ - Borland C++ 拉伸(stretch) TAnimate

标签 c++ c++builder

您好,我有一个用 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/

相关文章:

c++ - 在 C++ 中将 Windows CreateFile 句柄转换为 'long' 的 Safeway,反之亦然

c++ - 在递归函数中更有效地创建对象和对象数组? C++

c++ - 默认赋值运算符检查自赋值

delphi - 在DLL中打开的表单显示在任务管理器中,如何隐藏?

c++ - 在NTFS压缩目录中,如何读取文件压缩和未压缩的大小?

c++ - C++中的 vector 交集

c++ - eclipse g++ 中的单元测试

c++builder - 抑制 Cppcheck 中自动绑定(bind)事件处理程序从未使用过的警告

c++ - 如何 shell 到另一个应用程序并让它以 Borland VCL 形式出现 (c++)

c++ - 如何将 System::WideString 转换为 char*,反之亦然?