资源说明:/**
* @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();
}
}
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。