static { System.setProperty("com.sun.media.jai.disableMediaLib", "true"); }
Image 객체를 BufferedImage 객체로 변환하는 방법
RenderedImage ri = JAI.create(“fileload”,pathandfilename); public void crop() { pb = new ParameterBlock(); pb.addSource(ri); pb.add((float)topLeftmx); pb.add((float)topLeftmy); pb.add((float)roiWidth); pb.add((float)roiHeight); ri = JAI.create(“crop”,pb); }