GifEncoder class

Inheritance

Constructors

GifEncoder({int delay = 80, int repeat = 0, int samplingFactor = 10})

Properties

delay ↔ int
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
output OutputBuffer
read / write
repeat ↔ int
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
samplingFactor ↔ int
read / write
supportsAnimation → bool
Does this encoder support animation?
read-only, override

Methods

addFrame(Image image, {int duration}) → void
This adds the frame passed to image. After the last frame has been added, finish is required to be called. Optional frame duration is in 1/100 sec.
encodeAnimation(Animation anim) → List<int>
Encode an animation.
override
encodeImage(Image image) → List<int>
Encode a single frame image.
override
finish() → List<int>
Encode the images that were added with addFrame. After this has been called (returning the finishes GIF), calling addFrame for a new animation or image is safe again. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited

Constants

APPLICATION_EXT → const int
0xff
BITS → const int
12
EOF → const int
-1
EXTENSION_RECORD_TYPE → const int
0x21
GIF89_STAMP → const String
'GIF89a'
GRAPHIC_CONTROL_EXT → const int
0xf9
HSIZE → const int
5003
IMAGE_DESC_RECORD_TYPE → const int
0x2c
MASKS → const List<int>
const [0x0000, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F, 0x003F, 0x007F, 0x00FF, 0x01FF, 0x03FF, 0x07FF, 0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF, 0xFFFF]
TERMINATE_RECORD_TYPE → const int
0x3b