Please Login to Remove!
I have a new idea.
1. Change the gif file extend name, for example: 001.gif -> 001.dat
2. Add the file into project
3. use java.lang.Class to get the data of gif
4. GIFEncodedImage.createEncodedImage(byte[],int,int, String) to create the EncodedImage
So u can have the EncodedImage of the original gif dat, and the frames is not lost.
If u display the image with BitmapField, create a thread to set its bitmap with different frame.
Last edited by xray2100; 07-24-2008 at 05:49 AM..
Reason: Forget an important step
|