- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我只想从我将从相机获得的 2 个位图图像制作动画 gif 图像,并想邮寄该 gif 图像。
最佳答案
http://jiggawatt.org/badc0de/android/index.html#gifflen 有原生库
I've written a small native lib for Android to do color quantization (from 2-256 colors) of a Bitmap and save the result as a frame in an animated GIF (you can add as many frames as you like). You may hack and slash the library code as you wish to fit your needs. The color quantizer used is Anthony Dekker's NeuQuant, with some modifications made by me.
对于基于 Java 的库,请尝试 http://www.jappit.com/blog/2008/12/04/j2me-animated-gif-encoder/
Usage is quite straightforward, and it requires these steps: Instantiate your AnimatedGifEncoder object Start it, by passing an OutputStream as argument (e.g.: a ByteArrayOutputStream) Add your Image objects by using addFrame() method Finalize it by calling finish()
关于android - 如何在android中通过两个位图制作gif图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8515350/
我是一名优秀的程序员,十分优秀!