您需要下载JAI Image I / O Tools,它提供了JAI的ImageIO适配器。安装完之后,一切顺利。
final BufferedImage in = ImageIO.read(new File("frabozzle.tif"));final BufferedImage out = new BufferedImage( in.getWidth(), in.getHeight(), BufferedImage.TYPE_BYTE_GRAY);out.getGraphics().drawImage(in, 0, 0, null);ImageIO.write(out, "TIFF", new File("graybozzle.tif"));
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)