@@ -0,0 +1,1629 @@
+/*%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 junit.framework.TestCase;%0Aimport com.mortennobel.imagescaling.ResampleOp;%0Aimport com.mortennobel.imagescaling.AdvancedResizeOp;%0A%0Aimport java.awt.image.BufferedImage;%0A%0A/**%0A * Created by IntelliJ IDEA.%0A * User: morten%0A * Date: Jul 7, 2009%0A * Time: 6:16:51 PM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class Issue3 extends TestCase %7B%0A%09public void testBug()%7B%0A%0A%09%09int srcWidth = 1920;%0A%09%09int srcHeight = 1200;%0A%09%09int dstWidth = (int) (srcWidth * 0.6);%0A%09%09int dstHeight = (int) (srcHeight*0.6);%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%09System.out.println(%22rescaledImage %22+rescaledImage.getWidth()+%22x%22+rescaledImage.getHeight());%0A%09%7D%0A%7D%0A

Add test of issue3