GifEncoder::setTransparent()
Browser availability: desktop-only.
The encoder behind the desktop's GifRecorder; recording is desktop-only.
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 -1 to indicate no transparent color.
Syntax
Java
.setTransparent(rgb)
Parameters
| Name | Data Type | Description |
|---|---|---|
| rgb | int | int color (0xRRGGBB) to be treated as transparent on display, or -1 for none. |
Return
void