Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ImagePanel extends JPanel{
- int[][] matrix = new int[1920][1080];
- private BufferedImage image;
- public ImagePanel() throws IOException{
- image = new BufferedImage(1920,1080, BufferedImage.TYPE_INT_RGB);
- createPicture(1920,1080);
- for(int y=0;y<1080;y++){
- for(int x=0;x<1920;x++){
- image.setRGB(x,y,matrix[x][y]);
- }
- this.repaint();
- TimeUnit.MILLISECONDS.sleep(100);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement