@@ -0,0 +1,1344 @@
+/*%0A * Copyright 2009, Morten Nobel-Joergensen%0A *%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Lesser General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * any later version.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public License%0A * along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A *%0A */%0Apackage com.mortennobel.imagescaling.issues;%0A%0Aimport com.mortennobel.imagescaling.ResampleOp;%0Aimport com.mortennobel.imagescaling.AdvancedResizeOp;%0A%0Aimport java.awt.image.BufferedImage;%0A%0Aimport junit.framework.TestCase;%0A%0A/**%0A *%0A */%0Apublic class Issue2 extends TestCase %7B%0A%09public void testBug()%7B%0A%0A%09%09int srcWidth = 100;%0A%09%09int srcHeight = 100;%0A%09%09int dstWidth = 2;%0A%09%09int dstHeight = 2;%0A%09%09ResampleOp resampleOp = new ResampleOp(dstWidth, dstHeight);%0A%09%09resampleOp.setUnsharpenMask(AdvancedResizeOp.UnsharpenMask.Normal);%0A%09%09BufferedImage rescaledImage = resampleOp.filter(new BufferedImage(srcWidth, srcHeight, BufferedImage.TYPE_INT_BGR), null);%0A%09%7D%0A%7D%0A

Add test case of issue2