From 9f145a868408c1d9fb612a860320c4b98ded1591 Mon Sep 17 00:00:00 2001 From: Harald Kuhr Date: Wed, 8 Apr 2015 13:38:57 +0200 Subject: [PATCH] Code clean-up. --- .../src/main/java/com/twelvemonkeys/image/ResampleOp.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/common-image/src/main/java/com/twelvemonkeys/image/ResampleOp.java b/common/common-image/src/main/java/com/twelvemonkeys/image/ResampleOp.java index c2132eed..2f598cb0 100644 --- a/common/common-image/src/main/java/com/twelvemonkeys/image/ResampleOp.java +++ b/common/common-image/src/main/java/com/twelvemonkeys/image/ResampleOp.java @@ -547,7 +547,7 @@ public class ResampleOp implements BufferedImageOp/* TODO: RasterOp */ { // TODO: What if output != null and wrong size? Create new? Render on only a part? Document? - // If filter type != POINT or BOX an input has IndexColorModel, convert + // If filter type != POINT or BOX and input has IndexColorModel, convert // to true color, with alpha reflecting that of the original color model. BufferedImage temp; ColorModel cm; @@ -590,7 +590,7 @@ public class ResampleOp implements BufferedImageOp/* TODO: RasterOp */ { /* // TODO: This idea from Chet and Romain is actually not too bad.. // It reuses the image/raster/graphics... - // However, they forget to end with a halve operation.. + // However, they don't end with a halve operation.. private static BufferedImage getFasterScaledInstance(BufferedImage img, int targetWidth, int targetHeight, Object hint, boolean progressiveBilinear) { @@ -895,7 +895,7 @@ public class ResampleOp implements BufferedImageOp/* TODO: RasterOp */ { * filter function definitions */ - static interface InterpolationFilter { + interface InterpolationFilter { double filter(double t); double support();