AS3确定动画和非动画gif之间的区别?
AS3中有没有办法确定动画和非动画gif之间的区别?
Is there a way in AS3 to determine the difference between animated and not-animated gif?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本机 Flash Player 不支持动画 GIF。然而,有人编写了一个可以执行此操作的库,因此您可以使用该库读取文件并计算帧数。 1 帧 = 非动画。超过 1 帧 = 动画。
AS3 GIF 播放器类
The native Flash Player does NOT support animated GIFs. However someone has written a library that does, so you could use that library to read in the file, and count the number of frames. 1 frame = non animated. More than 1 frame = animated.
AS3 GIF Player Class