main.com.github.takahirom.roborazzi.DifferBufferedImage.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of roborazzi-painter Show documentation
Show all versions of roborazzi-painter Show documentation
Make JVM Android integration test visible
package com.github.takahirom.roborazzi
import com.dropbox.differ.Color
import com.dropbox.differ.Image
import java.awt.image.BufferedImage
internal class DifferBufferedImage(private val bufferedImage: BufferedImage) : Image {
override val height: Int
get() = bufferedImage.height
override val width: Int
get() = bufferedImage.width
override fun getPixel(x: Int, y: Int): Color {
return Color(bufferedImage.getRGB(x, y))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy