Rgb

class Rgb(val width: Int, val height: Int, val pixels: ByteArray) : LlamaImage(source)

Raw packed RGB888 pixels, row by row from the top-left: width * height * 3 bytes.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, pixels: ByteArray)

Properties

Link copied to clipboard
val height: Int

image height in pixels.

Link copied to clipboard

width * height * 3 bytes.

Link copied to clipboard
val width: Int

image width in pixels.

Functions

Link copied to clipboard
open override fun toString(): String

The dimensions, without the pixels.