Press on the image to return to the main documentation page.
GifDecoder
The GifDecoder library provides a GifDecoder object that provides the facility to extract the individual frames and associated delay information from an animated GIF file.
No copyright is asserted on the source or object code of this library. It may be used for any purpose, however, refer to the Unisys LZW patent for any additional restrictions.
The decoder was originally written as a component of a bigger application by Kevin Weiner of FM Software using an LZW decoder adapted from John Cristy's ImageMagick. Performance greatly improved, some bugs squashed, adapted for use with Basic4ppc and further translated into Java for use in Basic4android applications by Andrew Graham.
Processing larger animated GIFs with many frames can be a slow process on a device. Also such files may occupy a large amount of memory as each individual frame is saved for display as a bitmap when the GIF is loaded. Invoking Load will dispose of any existing frame bitmaps. If it is required to keep any of those bitmaps they should be copied, not assigned, into another bitmap. This is an 'Activity Object', it cannot be declared under Sub Process_Globals.