Companion

Properties

Link copied to clipboard
open override val bpp: Int = 32
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 ColorFormat32.encode(colors: IntArray, colorsOffset: Int, out: IntArray, outOffset: Int, size: Int)
fun ColorFormat.encode(colors: RgbaArray, colorsOffset: Int, out: ByteArray, outOffset: Int, size: Int, littleEndian: Boolean = true)
Link copied to clipboard
fun float(rgbaf: RGBAf): RGBA
fun float(array: FloatArray, index: Int = 0): RGBA
fun float(r: Double, g: Double, b: Double, a: Double): RGBA
fun float(r: Float, g: Float, b: Float, a: Float): RGBA
Link copied to clipboard
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
fun interpolate(src: RGBA, dst: RGBA, ratio: Ratio): RGBA
Link copied to clipboard
operator fun invoke(rgba: RGBA): RGBA
operator fun invoke(rgb: Int, a: Int): RGBA
operator fun invoke(r: Int, g: Int, b: Int): RGBA
operator fun invoke(r: Int, g: Int, b: Int, a: Int): RGBA
Link copied to clipboard
fun mix(dst: RGBA, src: RGBA): RGBA
Link copied to clipboard
fun mixRgb(c1: RGBA, c2: RGBA, factor: Ratio): RGBA
Link copied to clipboard
fun mixRgba(c1: RGBA, c2: RGBA, factor: Ratio): RGBA
Link copied to clipboard
fun mixRgba4(c00: RGBA, c10: RGBA, c01: RGBA, c11: RGBA, factorX: Ratio, factorY: Ratio): RGBA
Link copied to clipboard
fun mixRgbFactor256(c1: RGBA, c2: RGBA, factor256: Int): RGBA
fun mixRgbFactor256(c1: Int, c2: Int, factor256: Int): Int
Link copied to clipboard
fun multiply(c1: RGBA, c2: RGBA): RGBA
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
fun packUnsafe(r: Int, g: Int, b: Int, a: Int): RGBA
Link copied to clipboard
Link copied to clipboard
fun unclamped(r: Int, g: Int, b: Int, a: Int): RGBA
Link copied to clipboard