import java.io.*; import java.awt.image.*; import java.awt.*; public class GIFPilt{ public static void main(String argumendid[]) throws Exception{ BufferedImage bi=new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB); Graphics g=bi.createGraphics(); g.setColor(Color.blue); g.fillRect(20, 20, 60, 60); GIFOutputStream gifo=new GIFOutputStream(new FileOutputStream("ruut.gif")); gifo.write(bi); gifo.close(); } }