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

Mise à jour du constructeur MatrixGrayImage et des méthodes getHeight et getWidth

parent 96f901bb
No related branches found
No related tags found
No related merge requests found
...@@ -32,23 +32,18 @@ public class MatrixGrayImage implements GrayImage { ...@@ -32,23 +32,18 @@ public class MatrixGrayImage implements GrayImage {
@Override @Override
public int getWidth() { public int getWidth() {
// TODO : Changer les instructions pour retourner la largeur de l'image. return this.width;
return 600;
} }
@Override @Override
public int getHeight() { public int getHeight() {
// TODO : Changer les instructions pour retourner la hauteur de l'image. return this.height;
return 400;
} }
public MatrixGrayImage(int width, int height){ public MatrixGrayImage(int width, int height){
/* TODO : Modifier les instructions pour initialiser correctement this.width = width;
les propriétés de l'instance. this.height = height;
*/ this.pixels = new GrayColor[this.width][this.height];
this.width = 0;
this.height = 0;
this.pixels = null;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment