fin de mon sprint
This commit is contained in:
@@ -6,8 +6,10 @@ public class Pixel{
|
||||
private int b;
|
||||
|
||||
//à completer
|
||||
public Pixel(){
|
||||
|
||||
public Pixel(int red, int green, int blue){
|
||||
this.r=red;
|
||||
this.g=green;
|
||||
this.b=blue;
|
||||
}
|
||||
|
||||
public int getB() {
|
||||
|
||||
@@ -4,7 +4,15 @@ public class RGBImage {
|
||||
|
||||
private int width;
|
||||
private int height;
|
||||
private Pixel [] pixels
|
||||
private Pixel [] pixels;
|
||||
|
||||
public RGBImage (int lar, int haut){
|
||||
this.width=lar;
|
||||
this.height=haut;
|
||||
int[][] matrice = new int[this.width][this.height];
|
||||
}
|
||||
|
||||
|
||||
|
||||
public int getWidth() {
|
||||
return width;
|
||||
|
||||
Reference in New Issue
Block a user