david session perdu
This commit is contained in:
Binary file not shown.
@@ -17,9 +17,11 @@ public class Coloriage extends JComponent{
|
||||
int blue = couleur.getBlue();
|
||||
int red = couleur.getRed();
|
||||
int green = couleur.getGreen();
|
||||
fos.write(blue);
|
||||
fos.write(red);
|
||||
fos.write(green);
|
||||
for (int i= 0; i < 500; i++){
|
||||
fos.write(blue);
|
||||
fos.write(red);
|
||||
fos.write(green);
|
||||
}
|
||||
|
||||
}catch(IOException e){
|
||||
System.err.println("erreur d'ecriture");
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.awt.Color;
|
||||
public class ColoriageTest{
|
||||
|
||||
public static void main(String[] args) {
|
||||
Color couleur = new Color(0,0,0);
|
||||
Color couleur = new Color(255,255,255);
|
||||
couleur.decode(args[0]);
|
||||
//String couleur2 = args[1];//
|
||||
Coloriage coloriage = new Coloriage(couleur);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -12,7 +12,7 @@ public class ImgTest {
|
||||
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
|
||||
try{
|
||||
Imagee img = new Imagee(768, 1024,"image.bin");
|
||||
Imagee img = new Imagee(768, 1024,"couleur.bin");
|
||||
fenetre.add(img);
|
||||
}catch(IOException e){
|
||||
System.out.println("probleme");
|
||||
|
||||
Reference in New Issue
Block a user