文件名称:java传真tif格式转换资料
文件大小:493KB
文件格式:DOC
更新时间:2015-12-23 09:05:47
tif格式转
/** * @author Huang Jinxiang * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class Test { public static void main(String[] args) throws Exception{ String inputFile = "me.tif"; String outputFile = "out.bmp"; RenderedOp src = JAI.create("fileload", inputFile); OutputStream os = new FileOutputStream(outputFile); BMPEncodeParam param = new BMPEncodeParam(); ImageEncoder enc = ImageCodec.createImageEncoder("BMP", os, param); enc.encode(src); os.close(); } }