BgraRawImage

data class BgraRawImage(val size: ImageSize, val bytes: ByteArray)

Represents an image with 8-bit BGRA color components with the values Blue, Green, and Red stored in 3 bytes and 1 byte of alpha.

The 4 bytes of color image pixel:

  • 0th byte: BB - blue

  • 1st byte: GG - green

  • 2nd byte: RR - red

  • 3rd byte: 0 - alpha

Constructors

Link copied to clipboard
fun BgraRawImage(size: ImageSize, bytes: ByteArray)

Types

Link copied to clipboard
object Companion

Functions

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

Properties

Link copied to clipboard

Image bytes.

Link copied to clipboard

Image size in pixels.