Unit BGRAAnimatedGif

📄 Source code

Functions and Procedures
Variables

Description

Classes to read and write animated GIF and animated PNG files.

Uses

Overview

Structures

Name Description
Class TBGRAAnimatedGif Class to read/write animated GIF, supports animated PNG as well when specified
Class TBGRAAnimatedPng Class to read/write animated PNG, supports animated GIF as well when specified.
Class TBGRAReaderGIF Static GIF reader
Class TBGRAWriterGIF Static GIF writer

Types

TDisposeMode = BGRAGifFormat.TDisposeMode;
TGifBackgroundMode = (...);
TGifSubImage = BGRAGifFormat.TGifSubImage;
TGifSubImageArray = BGRAGifFormat.TGifSubImageArray;

Constants

GifBackgroundModeStr: array[TGifBackgroundMode] of string = ('gbmSimplePaint', 'gbmEraseBackground', 'gbmSaveBackgroundOnce', 'gbmUpdateBackgroundContinuously');

Description

Types

TDisposeMode = BGRAGifFormat.TDisposeMode;

What to do when finishing a frame and starting the next one

TGifBackgroundMode = (...);

How to deal with the background under the GIF animation

Values
  • gbmSimplePaint
  • gbmEraseBackground: frames are rendered without clearing the backgroud
  • gbmSaveBackgroundOnce: pixels in the GIF that become transparent are filled with EraseColor
  • gbmUpdateBackgroundContinuously: background is saved once before drawing the first frame
TGifSubImage = BGRAGifFormat.TGifSubImage;

One image in the GIF animation

TGifSubImageArray = BGRAGifFormat.TGifSubImageArray;

This item has no description.

Constants

GifBackgroundModeStr: array[TGifBackgroundMode] of string = ('gbmSimplePaint', 'gbmEraseBackground', 'gbmSaveBackgroundOnce', 'gbmUpdateBackgroundContinuously');

String constants for TGifBackgroundMode