Reputation: 5885
I am trying to create a gif from jpeg files using http://www.jappit.com/blog/2008/12/04/j2me-animated-gif-encoder/ and this thread is my reference How to create an animated GIF from JPEGs in Android (development).
encoder.start(bos);
for (Bitmap bitmap : bitmaps) {
encoder.addFrame(bitmap);
}
But addFrame looks for Image ( The method addFrame(Image) in the type AnimatedGifEncoder is not applicable for the arguments (Bitmap) ) and I am not sure how we can convert Bitmap to .lcdui.Image
Any clues ?
Thanks
Upvotes: 0
Views: 199
Reputation: 11992
Try to use this class https://github.com/nbadal/android-gif-encoder/blob/master/GifEncoder.java.
As I can see there, addFrame
method receives Bitmap
as a parameter.
Upvotes: 1