The following features are implemented when loading and saving GIF files:
You can get and set comments in GIF files using the LFileSettings::GetComment, LFileSettings::SetComment, LFile::ReadComment, and LMemoryFile::ReadComment functions. In these functions, only the CMNT_SZDESC type of comment is supported.
In a multipage file, these functions reference the last comment encountered before the page specified by the LOADFILEOPTION structure.
With an interlaced file, a paint-while-load operation displays the full size of the image as quickly as possible, then fills in the missing rows. For an example of the paint-while-load code, refer to the LFile::LoadFile function.
To save a GIF file as an interlaced file, use the SAVEFILEOPTION structure to set the ESO_INTERLACED flag before saving the file.
If plain text is embedded in a GIF file, LEADTOOLS rasterizes the text when loading the file, making the text part of the bitmap.
To load and play an animated GIF file, you can load a list of bitmaps from the file, then play the list to a target bitmap in a loop that displays each change in the target bitmap. You can also create an animation sequence from scratch and save the bitmaps to create an animated GIF file. For more information, refer to Implementing Animation.