GifEncoder::setQuality()
Browser availability: desktop-only.
The encoder behind the desktop's GifRecorder; recording is desktop-only.
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.
Syntax
Java
.setQuality(quality)
Parameters
| Name | Data Type | Description |
|---|---|---|
| quality | int | int greater than 0. |
Return
void