---
title: "Rgba8888"
sidebar_label: "Rgba8888"
description: "Kotlin binding reference: Rgba8888."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../../index.md)/[io.clika.modelverse](../../index.md)/[ImageInput](../index.md)/[Rgba8888](index.md)

# Rgba8888

[common]\
class [Rgba8888](index.md)(val pixels: [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html), val width: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), val height: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)) : [ImageInput](../index.md)

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](width.md) × [height](height.md) pixels. The alpha is dropped; the model reads the color.

## Constructors

| | |
|---|---|
| [Rgba8888](Rgba8888.md) | [common]<br>constructor(pixels: [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html), width: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), height: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)) |

## Properties

| Name | Summary |
|---|---|
| [height](height.md) | [common]<br>val [height](height.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |
| [pixels](pixels.md) | [common]<br>val [pixels](pixels.md): [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html) |
| [width](width.md) | [common]<br>val [width](width.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |