import java.awt.*; import java.awt.image.*; import javax.imageio.ImageIO; import java.io.File; import java.io.IOException; class Main { static final int X = 380, Y = 250; static BufferedImage I = new BufferedImage(X,Y,BufferedImage.TYPE_INT_RGB); static public void main(String[] args) { for (int i = 0; i0 ) { int x = X-40, y = Y-40; int[] a = new int[y*x*3]; // 96 bit pixels for(int j = 0; j 0) { try { ImageIO.write( I, args[q].substring(z+1), new File(args[q])); } catch (IOException e) { System.err.println("image not saved."); } } } } } class MainCanvas extends Canvas { public void paint(Graphics g) { g.drawImage(Main.I, 0, 0, Color.red, null); /* Dimension s = getSize(); g.drawOval(0, 0, s.width, s.height); */ } }