public void testScaleBounds() throws Exception {
File img = new File(dir, "color.jpg");
for (int i = 1; i < 32; i++) {
File dest = new File(resultDir, "LANCZOS_color_java_lanczos_" + i + "_result.jpg");
ScaleParameter scaleParam = new ScaleParameter(i, i, Algorithm.LANCZOS);
doScale(img, dest, scaleParam);
}
for (int i = 31; i < 150; i += 8) {
File dest = new File(resultDir, "LANCZOS_color_java_lanczos_" + i + "_result.jpg");
ScaleParameter scaleParam = new ScaleParameter(i, i, Algorithm.LANCZOS);
doScale(img, dest, scaleParam);
}
for (int i = 1000; i <= 2000; i += 100) {
File dest = new File(resultDir, "LANCZOS_color_java_lanczos_" + i + "_result.jpg");
ScaleParameter scaleParam = new ScaleParameter(i, i, Algorithm.LANCZOS);
doScale(img, dest, scaleParam);
}
}