image = ImageIO.read(new File("C:/Graphics/src/name2.jpg"));
ImageFilter filter = new CropImageFilter(0, 0, 250, 250);
ImageProducer producer = new FilteredImageSource(image.getSource(), filter);
Image resultImage = Toolkit.getDefaultToolkit().createImage(
producer);
ImageIO.write(resultImage, "jpg",
new File("C:/Graphics/src/name7.jpg")); //not allowing me
//这是行显示错误为:
The method write(RenderedImage, String, File) in the type ImageIO is not
applicable for the arguments (Image, String, File)