BufferedImage bi = new BufferedImage(24,24,BufferedImage.TYPE_INT_RGB);
int rgbs[] = new int[24*24];
for(int i = 0;i<24*24;i++) rgbs[i] = getBackground().getRGB();
bi.setRGB(10,10,0);
try{ImageIO.write(bi, "png", new File("F:/j/o.png"));}
       catch(IOException e){}上面的测试代码正常通过,能够生成预期的图片。但是如果将png换成gif就只能生成大小为零的gif文件,也就是说bi的内容没有写到文件里去,请教这是为什么?