2025-12-20 14:01:36 +01:00
|
|
|
package fr.iutfbleau.sae.mimage;
|
2025-12-19 15:36:57 +01:00
|
|
|
|
2025-12-20 11:54:06 +01:00
|
|
|
public class Pixel{
|
|
|
|
|
private int r;
|
|
|
|
|
private int g;
|
|
|
|
|
private int b;
|
|
|
|
|
|
|
|
|
|
//à completer
|
2025-12-21 14:28:37 +01:00
|
|
|
public Pixel(int red, int green, int blue){
|
|
|
|
|
this.r=red;
|
|
|
|
|
this.g=green;
|
|
|
|
|
this.b=blue;
|
2025-12-20 11:54:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getB() {
|
|
|
|
|
return b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getG() {
|
|
|
|
|
return g;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getR() {
|
|
|
|
|
return r;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setR(int r) {
|
|
|
|
|
this.r = r;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setB(int b) {
|
|
|
|
|
this.b = b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setG(int g) {
|
|
|
|
|
this.g = g;
|
|
|
|
|
}
|
2025-12-19 15:36:57 +01:00
|
|
|
}
|