Companion

object Companion

Types

Link copied to clipboard
data class MatchResult(val sizeMatches: Boolean, val differentPixels: Int = 0, val samePixels: Int = 0)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun copyChannel(src: Bitmap32, srcChannel: BitmapChannel, dst: Bitmap8)
fun copyChannel(src: Bitmap8, dst: Bitmap32, dstChannel: BitmapChannel)
fun copyChannel(src: Bitmap32, srcChannel: BitmapChannel, dst: Bitmap32, dstChannel: BitmapChannel)
Link copied to clipboard
fun copyRect(src: Bitmap32, srcX: Int, srcY: Int, dst: Bitmap32, dstX: Int, dstY: Int, width: Int, height: Int)
Link copied to clipboard
fun createWithAlpha(color: Bitmap32, alpha: Bitmap32, alphaChannel: BitmapChannel = BitmapChannel.RED): Bitmap32
Link copied to clipboard
fun diff(a: Bitmap, b: Bitmap): Bitmap32
Link copied to clipboard
Link copied to clipboard
operator fun invoke(width: Int, height: Int, value: RGBAPremultiplied): Bitmap32
operator fun invoke(width: Int, height: Int, value: RgbaPremultipliedArray): Bitmap32
operator fun invoke(width: Int, height: Int, premultiplied: Boolean): Bitmap32
@JvmName(name = "invokeRGBAPremultiplied")
operator fun invoke(width: Int, height: Int, generator: (x: Int, y: Int) -> RGBAPremultiplied): Bitmap32
@JvmName(name = "invokeRGBA")
operator fun invoke(width: Int, height: Int, generator: (x: Int, y: Int) -> RGBA): Bitmap32
Link copied to clipboard
suspend fun matches(a: Bitmap, b: Bitmap, threshold: Int = 32): Boolean
Link copied to clipboard
suspend fun matchesSSMI(a: Bitmap, b: Bitmap): Boolean