Skip to content
Snippets Groups Projects
Commit 60b36e09 authored by SAEZ Theo's avatar SAEZ Theo
Browse files

Ajout de la transformation d'inversion d'image dans la méthode initialize

parent 300d688f
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,9 @@ public class Display implements Initializable {
this.image = MatrixGrayImage.createImageFromPGMFile("images/luminy.pgm");
// TODO : Ajouter les transformations d'image.
transform transformation = new Invert();
transformation.applyTo(this.image);
render();
}
......@@ -48,4 +50,8 @@ public class Display implements Initializable {
pixelWriter.setColor(x, y, image.getPixelColor(x, y));
}
private void invert() {
image.invert();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment