Skip to main content

//clika-runtime/io.clika.modelverse/ImageInput/Rgba8888

Rgba8888

[common]
class Rgba8888(val pixels: ByteArray, val width: Int, val height: Int) : ImageInput

The pixels of an ARGB_8888 bitmap as Bitmap.copyPixelsToBuffer writes them: four bytes per pixel in the order red, green, blue, alpha, row by row, width × height pixels. The alpha is dropped; the model reads the color.

Constructors​

Rgba8888[common]
constructor(pixels: ByteArray, width: Int, height: Int)

Properties​

NameSummary
height[common]
val height: Int
pixels[common]
val pixels: ByteArray
width[common]
val width: Int