GifEncoder
Static Members
Clamp a value between a and b and return the clamped version
Name | Type |
---|---|
value |
Float |
a |
Float |
b |
Float |
Returns |
---|
Float |
Instance Members
Allows a custom print handler for error messages. Defaults to Sys.println on sys targets, and trace otherwise.
Name | Type |
---|---|
output |
haxe.io.BytesOutput |
Name | Type |
---|---|
output |
haxe.io.BytesOutput |
frame |
GifFrame |
Name | Type |
---|---|
output |
haxe.io.BytesOutput |
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
Name | Type |
---|---|
pixels |
haxe.io.UInt8Array |
Writes Logical Screen Descriptor.
Name | Type |
---|---|
output |
haxe.io.BytesOutput |
Writes Netscape application extension to define repeat count.
Name | Type |
---|---|
output |
haxe.io.BytesOutput |
Write color table.
Name | Type |
---|---|
output |
haxe.io.BytesOutput |
Encodes and writes pixel data.
Name | Type |
---|---|
output |
haxe.io.BytesOutput |
Writes Image Descriptor.
Name | Type |
---|---|
output |
haxe.io.BytesOutput |
first |
Bool |
Writes Graphic Control Extension. Delay is in seconds, floored and converted to 1/100 of a second
Name | Type |
---|---|
output |
haxe.io.BytesOutput |
delay |
Float |