从 Android 中的动画 gif 中检索可绘制对象
我想在 Android 中以编程方式检索动画 gif 中的不同可绘制对象。
I'd like to retrieve the different drawables inside an animated gif programmatically in Android.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很混乱,但你无法使用标准平台工具做到这一点。您需要一个动画 GIF 解码器库才能在任何平台上执行此操作。看看 http ://www.mydigitallife.co.za/index.php?option=com_myblog&show=a-j2me-gif-decoderhtml&Itemid=29:它是有点复杂,但可能会让您开始提取单个图像。
或者考虑在远程服务器上进行图像提取。
Messy, but you aren't going to be able to do that with the standard platform tools. You'll need an animated GIF decoder library to do that on ANY platform. Take a look at http://www.mydigitallife.co.za/index.php?option=com_myblog&show=a-j2me-gif-decoderhtml&Itemid=29: it is somewhat complex but may give you the start you need to extract the individual images.
Alternatively consider doing the image extraction on a remote server.