Package-level declarations

Types

Link copied to clipboard
object ARGB : ColorFormat
Link copied to clipboard
object BGR : RGB
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object BGRA : ColorFormat
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline class CMYK(val value: Int)
Link copied to clipboard
inline class ColorAdd(val value: Int)
Link copied to clipboard
interface ColorFormat
Link copied to clipboard
Link copied to clipboard
abstract class ColorFormat24 : ColorFormat
Link copied to clipboard
abstract class ColorFormat32 : ColorFormat
Link copied to clipboard
data class ColorMatrix(val rr: Float, val rb: Float, val rg: Float, val ra: Float, val r1: Float, val gr: Float, val gb: Float, val gg: Float, val ga: Float, val g1: Float, val br: Float, val bb: Float, val bg: Float, val ba: Float, val b1: Float, val ar: Float, val ab: Float, val ag: Float, val aa: Float, val a1: Float)
Link copied to clipboard
object Colors
Link copied to clipboard
object ColorsExt
Link copied to clipboard
data class ColorTransform(_mR: Float, _mG: Float, _mB: Float, _mA: Float, _aR: Int, _aG: Int, _aB: Int, _aA: Int) : MutableInterpolable<ColorTransform> , Interpolable<ColorTransform>
Link copied to clipboard
data class ColorTransformMul(_r: Float = 1.0f, _g: Float = 1.0f, _b: Float = 1.0f, _a: Float = 1.0f)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class RGB(val rOffset: Int, val gOffset: Int, val bOffset: Int) : ColorFormat24
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline class RGBA(val value: Int) : Comparable<RGBA> , Interpolable<RGBA> , Paint
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline class RgbaArray(val ints: IntArray) : List<RGBA>
Link copied to clipboard
class RGBAd(var r: Double, var g: Double, var b: Double, var a: Double)
Link copied to clipboard
inline class RGBAf(val data: FloatArray)
Link copied to clipboard
inline class RGBAPremultiplied(val value: Int)
Link copied to clipboard
inline class RgbaPremultipliedArray(val ints: IntArray)
Link copied to clipboard
inline class YCbCr(val value: Int)
Link copied to clipboard
inline class YCbCrArray(val ints: IntArray)
Link copied to clipboard
inline class YUVA(val value: Int)
Link copied to clipboard
inline class YuvaArray(val ints: IntArray)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun arraycopy(src: RgbaArray, srcPos: Int, dst: RgbaArray, dstPos: Int, size: Int)
fun arraycopy(src: RgbaPremultipliedArray, srcPos: Int, dst: RgbaPremultipliedArray, dstPos: Int, size: Int)
Link copied to clipboard
inline fun ColorTransform(multiply: RGBA = Colors.WHITE, add: ColorAdd = ColorAdd(0, 0, 0, 0)): ColorTransform
inline fun ColorTransform(mR: Number = 1.0f, mG: Number = 1.0f, mB: Number = 1.0f, mA: Number = 1.0f, aR: Number = 0, aG: Number = 0, aB: Number = 0, aA: Number = 0): ColorTransform
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 depremultiply(src: RgbaPremultipliedArray, srcN: Int, dst: RgbaArray, dstN: Int, count: Int)
Link copied to clipboard
fun ColorFormat.encode(colors: RgbaArray, colorsOffset: Int = 0, size: Int = colors.size, littleEndian: Boolean = true): ByteArray
fun ColorFormat16.encode(colors: IntArray, colorsOffset: Int, out: ShortArray, outOffset: Int, size: Int)
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Colors.getName(color: RGBA): String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun mix(dst: RgbaArray, dstX: Int, src: RgbaPremultipliedArray, srcX: Int, count: Int)
fun mix(dst: RgbaPremultipliedArray, dstX: Int, src: RgbaPremultipliedArray, srcX: Int, count: Int)
fun mix(tgt: RgbaPremultipliedArray, tgtX: Int, dst: RgbaPremultipliedArray, dstX: Int, src: RgbaPremultipliedArray, srcX: Int, count: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun premultiply(src: RgbaArray, srcN: Int, dst: RgbaPremultipliedArray, dstN: Int, count: Int)
Link copied to clipboard
inline fun RGBAf(r: Number, g: Number, b: Number, a: Number): RGBAf
Link copied to clipboard
fun scale(color: RgbaPremultipliedArray, colorOffset: Int, alpha: FloatArray, alphaOffset: Int, count: Int)
Link copied to clipboard
Link copied to clipboard
fun RGBA.swizzle(comps: String): RGBA
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun RGBA.toVector3D(out: MVector4 = MVector4()): MVector4
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun RGBA.writeFloat(out: FloatArray, index: Int = 0)