This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package se.dflemstr.imgproc.passes | |
| import java.awt.image.BufferedImage | |
| import se.dflemstr.imgproc.graphics.Texture | |
| object NearestNeighbor extends Pass { | |
| val title = "Nearest Neighbor interpolation detection" | |
| val description = "A pass that highlights duplicate pixels in an image." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package se.dflemstr.imgproc.passes | |
| import java.awt.image.BufferedImage | |
| import se.dflemstr.imgproc.graphics.Texture | |
| object NearestNeighbor extends Pass { | |
| val title = "Nearest Neighbor interpolation detection" | |
| val description = "A pass that highlights duplicate pixels in an image." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object SomeRandomPass extends Pass { | |
| val title = "Stuff" | |
| val description = "Stuff" | |
| //Magie: dieser Code fügt zwei Methoden zur Klasse BufferedImage hinzu | |
| //Tu dies in dein Pass herein unter "val description = ..." um es zu aktivieren | |
| case class Color(a: Int, r: Int, g: Int, b: Int) | |
| implicit def addColorAccessTo(img: BufferedImage) = new { | |
| def apply(x: Int, y: Int) = { |
NewerOlder