chickenfresh
09/07/2018, 12:15 AMabhinay
09/07/2018, 5:56 AMchickenfresh
09/07/2018, 6:49 AMchickenfresh
09/07/2018, 6:52 AMabhinay
09/07/2018, 7:33 AMchickenfresh
09/07/2018, 7:37 AMseiv
09/07/2018, 11:34 AMseiv
09/07/2018, 11:51 AMSola
09/07/2018, 11:51 PMabhinay
09/08/2018, 9:37 AMhudsonb
09/08/2018, 10:29 PMcarlw
09/09/2018, 12:13 AMhudsonb
09/09/2018, 12:50 AMhudsonb
09/09/2018, 12:52 AMhudsonb
09/09/2018, 12:54 AMhudsonb
09/09/2018, 1:04 AMhudsonb
09/09/2018, 1:13 AMamanda.hinchman-dominguez
09/09/2018, 9:41 PMamanda.hinchman-dominguez
09/09/2018, 9:42 PMhudsonb
09/10/2018, 1:48 AMhudsonb
09/10/2018, 1:50 AMhudsonb
09/10/2018, 2:37 AMhudsonb
09/10/2018, 2:45 AMhudsonb
09/10/2018, 12:05 PMclass MainView : View("It's alive!") {
private val rImage = Image("/images/photo.jpg")
private val wImage = WritableImage(rImage.pixelReader, 500, 250)
override val root = borderpane {
center {
hbox {
stackpane {
imageview(wImage).apply {
makePixelsBrighter(wImage)
makePixelsBrighter(wImage)
makePixelsBrighter(wImage)
}
hboxConstraints {
prefWidth = 500.0
prefHeight = 250.0
}
}
}
}
}
private fun makePixelsBrighter(image: WritableImage) {
val pixelReader = image.pixelReader
val pixelWriter = image.pixelWriter
// Determine the color of each pixel in a specified row
for (i in 0 until image.width) {
for (j in 0 until image.height) {
val color = pixelReader.getColor(i, j)
pixelWriter.setColor(i, j, color.desaturate())
}
}
}
}
amanda.hinchman-dominguez
09/10/2018, 3:29 PMhudsonb
09/10/2018, 3:31 PMhudsonb
09/10/2018, 3:51 PMhudsonb
09/10/2018, 4:00 PMColorAdjust
effect would meet your needs, I would imagine that would perform better.thomasnield
09/10/2018, 6:42 PM