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

Correction de la condition de boucle dans la méthode applyTo de la classe Invert

parent 60b36e09
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ public class Invert implements transform {
public void applyTo(GrayImage image) {
for (int i = 0; i < image.getWidth(); i++) {
for (int j = 0; i < image.getHeight(); j++) {
for (int j = 0; j < image.getHeight(); j++) {
image.setPixel(image.getPixelGrayColor(i, j).invert(), i, j);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment