GifEncoder
gif.GifEncoder (Class)
Static Members
Clamp a value between a and b and return the clamped version
Instance Members
Allows a custom print handler for error messages.
Defaults to Sys.println on sys targets, and trace otherwise.
gif
new(_frame_width: Int, _frame_height: Int, _framerate: Float, ?_repeat: Int = GifRepeat.Infinite, ?_quality: Int = 10): Void
Construct a gif encoder with options:
frame width/height:
Default is 0, required
framerate:
This is used if an added frame has a delay that is negative.
repeat:
Default is 0 (no repeat); -1 means play indefinitely.
Use GifRepeat for clarity
quality:
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. Higher values will speed
up the quantization pass at the cost of lower image quality (maximum = 100).
Name |
Type |
Default |
_frame_width |
Int |
|
_frame_height |
Int |
|
_framerate |
Float |
|
_repeat |
Int |
GifRepeat.Infinite |
_quality |
Int |
10 |
Private Members
gif
usedEntry: Array<Bool>
Writes Logical Screen Descriptor.
Writes Netscape application extension to define repeat count.
Write color table.
Encodes and writes pixel data.
Writes Image Descriptor.
Writes Graphic Control Extension. Delay is in seconds, floored and converted to 1/100 of a second