File outFile1 = new File(resultDir, "CLONEJPEG_" + fileName + "_1.jpg");
File outFile2 = new File(resultDir, "CLONEJPEG_" + fileName + "_2.jpg");
ImageWrapper imgWrapper = read(file);
ImageWrapper cloneWrapper = (ImageWrapper) imgWrapper.clone();
scale(imgWrapper, new ScaleParameter(100, 100), outFile1, ImageFormat.JPEG);
draw(cloneWrapper, dparam, outFile2, ImageFormat.JPEG);
}
}
}