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.

Constructors

Link copied to clipboard
constructor(imageColorIndices: ByteArray, width: Int, height: Int, x: Int, y: Int, colorTable: ByteArray, transparentColorIndex: Int)

Properties

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int
Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String