flut d'octet
This commit is contained in:
27
DEV2.1/Flux_octet/image/ImgTest.java
Normal file
27
DEV2.1/Flux_octet/image/ImgTest.java
Normal file
@@ -0,0 +1,27 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.io.*;
|
||||
|
||||
public class ImgTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
JFrame fenetre = new JFrame("Image");
|
||||
fenetre.setSize(768,1024);
|
||||
fenetre.setLocationRelativeTo(null);
|
||||
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
|
||||
try{
|
||||
Imagee img = new Imagee(768, 1024,"image.bin");
|
||||
fenetre.add(img);
|
||||
}catch(IOException e){
|
||||
System.out.println("probleme");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
fenetre.setVisible(true);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user