websend.avi作为TAnimate的自定义资源?

时间:2013-07-18 11:31:48

标签: delphi animation delphi-xe2 avi

在Delphi XE2中,我尝试使用websend.avi作为TAnimate的自定义资源,将其包含在Project/Resources and Images中,方式与引用here相同:

enter image description here

Animate1.ResName := 'WEBSENDAVI';
Animate1.Active := True;

但是,虽然相同的程序适用于cool.avi,但它始终与websend.avi崩溃:

enter image description here

所以似乎TAnimate只能接受某些AVI文件,而它会与其他AVI文件崩溃 AVI文件以上述方式使用TAnimate的规则是什么?

1 个答案:

答案 0 :(得分:3)

documentation说明您可以将AVI文件与原始未压缩帧或运行长度编码压缩一起使用。失败的AVI不符合这些要求。

相关问题