BGR

object BGR : RGB

Properties

Link copied to clipboard
Link copied to clipboard
open override val bpp: Int = 24
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun ColorFormat.convertTo(color: Int, target: ColorFormat): Int
Link copied to clipboard
fun ColorFormat.decode(data: ByteArray, dataOffset: Int = 0, size: Int = (data.size / bytesPerPixel).toInt(), littleEndian: Boolean = true): RgbaArray
fun ColorFormat.decode(data: ByteArray, dataOffset: Int, out: RgbaArray, outOffset: Int, size: Int, littleEndian: Boolean = true)
Link copied to clipboard
inline fun ColorFormat.decodeInternal(data: ByteArray, dataOffset: Int, out: RgbaArray, outOffset: Int, size: Int, read: (data: ByteArray, io: Int) -> Int)
Link copied to clipboard
fun ColorFormat.decodeToBitmap32(bmp: Bitmap32, data: ByteArray, dataOffset: Int = 0, littleEndian: Boolean = true): Bitmap32
fun ColorFormat.decodeToBitmap32(width: Int, height: Int, data: ByteArray, dataOffset: Int = 0, littleEndian: Boolean = true): Bitmap32
Link copied to clipboard
fun ColorFormat.encode(colors: RgbaArray, colorsOffset: Int = 0, size: Int = colors.size, littleEndian: Boolean = true): ByteArray
fun ColorFormat.encode(colors: RgbaArray, colorsOffset: Int, out: ByteArray, outOffset: Int, size: Int, littleEndian: Boolean = true)
Link copied to clipboard
open override fun getA(v: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getB(v: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getG(v: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getR(v: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun pack(r: Int, g: Int, b: Int, a: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard