Analyzes image colors and creates color map.
Returns index of palette color closest to c
Adds final trailer to the GIF stream, if you don't call the finish method the GIF stream will not be valid.
Extracts image pixels into byte array "pixels
Resets some members so that a new stream can be started. This method is actually called by the start method
Sets the comment for the block comment
Sets the delay time between each frame, or changes it for subsequent frames (applies to last frame added) int delay time in milliseconds
Sets the GIF frame disposal code for the last added frame and any
subsequent frames. Default is 0 if no transparent color has been set, otherwise 2.
int disposal code.
setDelay(1000/fps)
.float frame rate (frames per second)
Sets quality of color quantization (conversion of images to the maximum 256 colors allowed by the GIF specification). Lower values (minimum = 1) produce better colors, but slow processing significantly. 10 is the default, and produces good color mapping at reasonable speeds. Values greater than 20 do not yield significant improvements in speed.
int greater than 0.
Sets the number of times the set of GIF frames should be played. Default is 1; 0 means play indefinitely. Must be invoked before the first image is added.
int number of iterations.
Sets the GIF frame size. The default size is the size of the first frame added if this method is not invoked.
int frame width.
int frame width.
Sets the transparent color for the last added frame and any subsequent frames. Since all colors are subject to modification in the quantization process, the color in the final palette for each frame closest to the given color becomes the transparent color for that frame. May be set to null to indicate no transparent color.
Initiates GIF file creation on the given stream.
false if initial write failed.
Retrieves the GIF stream
Writes Comment Extention
Writes Graphic Control Extension
Writes Image Descriptor
Writes Logical Screen Descriptor
Writes Netscape application extension to define repeat count.
Writes color table
Encodes and writes pixel data
Generated using TypeDoc
The addFrame method takes an incoming BitmapData object to create each frames