QuantizedImageData
data class QuantizedImageData(val imageColorIndices: ByteArray, val width: Int, val height: Int, val x: Int, val y: Int, val colorTable: ByteArray, val transparentColorIndex: Int)(source)
Represents quantized image data that is to be encoded into a GIF frame.
Parameters
imageColorIndices
The indices of the colors in the image. Each index corresponds to a color in the colorTable.
width
The width of the image in pixels.
height
The height of the image in pixels.
x
The x-coordinate of the top-left corner of the image within the GIF canvas.
y
The y-coordinate of the top-left corner of the image within the GIF canvas.
colorTable
The color table of the image, where each color is represented by three consecutive bytes: red, green, and blue.
transparentColorIndex
The index of the transparent color. A value of -1 indicates that there is no transparency in the image.