format.gif

This is the API documentation for the Format Library.

..
ApplicationExtension

Application extension. Mostly used only for one reason - setting up loops count. There is exist other app extensions but they are really rare.

Block

Gif data block. Custom blocks are not supported.

ColorTable

Typical color table for Gif image. Can contain 2, 4, 8, 16, 32, 64, 128 or 256 colors. Data stored in RGB format. Information about alpha channel provided by Graohic Control Extension.

Data

Gif data.

DisposalMethod

Disposal method of GIF frame.

Extension

Extension block contains additional data about Gif image. This block does not supported by 87a version.

Frame

Single frame of the image. Actually it's a merge of 3 consequent blocks: 1. Image Descriptor. Contains frame informations like position, size, existing of local color table and interlaced flag. 2. [Local color table]. Only present if Image Descriptor contains local color table flag. Overrides global color table. 3. Pixel data blocks. LZW compressed pixel data.

GraphicControlExtension

Graphic Control Extension block, used for setting up disposal method, transparency, delay and user input.

LZWEncoder

LogicalScreenDescriptor

Logical screen descriptor of GIF file. Contains very basic information about Gif.

PlainTextExtension

Extension for rendering text on Gif logical screen. It does not supported by major Gif decoders. Font and text size decision is left to decoder. (recommended to decide based on grid/cell size) Text must be rendered with one character at cell. It's recommended to replace any characters less than 0x20 and greater than 0xf7 to be rendered as Space (0x20)

Reader

...

Tools

Tools for gif data.

Version

Version of Gif file.
The only 2 official versions is GIF87a and GIF89a.

Writer

...