diff --git a/PlaningDeTavail.md b/PlaningDeTavail.md index 4375737..53a8441 100644 --- a/PlaningDeTavail.md +++ b/PlaningDeTavail.md @@ -24,11 +24,11 @@ Objectif : Mise en place des fondations techniques | US-D4 | AD | DONE | 🟩 | Construire l’arbre Huffman | | US-D5 | AA | DONE | 🟩 | Générer les codes Huffman | | US-D6 | AA | DONE | 🟩 | Générer les codes canoniques | -| US-U5 | YB | DOING | 🟨 | Chargement d’image via ImageIO | -| US-D8 | YB | TODO | 🟥 | Structure RGBImage + Pixel | +| US-U5 | YB | DONE | 🟩 | Chargement d’image via ImageIO | +| US-D8 | YB | DONE | 🟩 | Structure RGBImage + Pixel | | US-P1 | AA | DONE | 🟩 | Interface simple d’affichage des fréquences | | US-P2 | AD | DONE | 🟩 | Interface simple d’affichage codes Huffman | -| US-P3 | AA | TODO | 🟩 | Interface simple d’affichage codes canoniques | +| US-P3 | AA | DONE | 🟩 | Interface simple d’affichage codes canoniques | ## Fichiers à créer – Sprint 1 diff --git a/src/fr/iutfbleau/sae/mimage/Pixel.java b/src/fr/iutfbleau/sae/mimage/Pixel.java index 54c3a98..0619e06 100644 --- a/src/fr/iutfbleau/sae/mimage/Pixel.java +++ b/src/fr/iutfbleau/sae/mimage/Pixel.java @@ -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() { diff --git a/src/fr/iutfbleau/sae/mimage/RGBImage.java b/src/fr/iutfbleau/sae/mimage/RGBImage.java index 3fc89e0..92ef420 100644 --- a/src/fr/iutfbleau/sae/mimage/RGBImage.java +++ b/src/fr/iutfbleau/sae/mimage/RGBImage.java @@ -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;