views:

22

answers:

1
+1  Q: 

Encode GIF in J2ME

Hi,

I have an Image object in J2ME and I'd like to enconde it to GIF. I've already found a JPEG and PNG encoder as well, but I'm wondering if it's possible to encode my Image in the GIF format, returning it's byte array.

I'm doing something like this:

...

  Image img = Image.createImage(width, height);
    Graphics graphics = img.getGraphics();
//do some drawing stuff here
...  

And finally I have an Image object.

Now I'd like to encode it to GIF like:

 byte[] gifBytes = GIFEncoder.encode(img);

Where can I find one?

thanks!

+1  A: 

Check this blog

org.life.java
That's the only I've found. Thanks.
Eduardo Abreu