Package org.zkoss.ztl.util.image

Examples of org.zkoss.ztl.util.image.Comparator


        BufferedImage test = testBuffImg.getSubimage(sizes[1],
            sizes[0], testBuffImg.getWidth()
                - (sizes[1] + sizes[3]),
            testBuffImg.getHeight() - (sizes[0] + sizes[2]));

                Comparator ic = comparator == null ? new DefaultComparator(base.getWidth()/configHelper.getGranularity(),
                    base.getHeight()/configHelper.getGranularity(), configHelper.getLeniency()):
                                comparator;
                BufferedImage imgc = ic.compare(base, test);
                if (imgc != null) {
                  File subDir = new File(resultDirStr + File.separator + caseID);
                  if (!subDir.isDirectory())
                    subDir.mkdir();
                  subDir = new File(subDir, caseID + "_" + browserName + "_result" + postfix);
View Full Code Here


        BufferedImage test = testBuffImg.getSubimage(sizes[1],
            sizes[0], testBuffImg.getWidth()
                - (sizes[1] + sizes[3]),
            testBuffImg.getHeight() - (sizes[0] + sizes[2]));

                Comparator ic = comparator == null ? new DefaultComparator(base.getWidth()/configHelper.getGranularity(),
                    base.getHeight()/configHelper.getGranularity(), configHelper.getLeniency()):
                                comparator;
                BufferedImage imgc = ic.compare(base, test);
                if (imgc != null) {
                  File subDir = new File(resultDirStr + File.separator + caseID);
                  if (!subDir.isDirectory())
                    subDir.mkdir();
                  subDir = new File(subDir, caseID + "_" + browserName + "_result" + postfix);
View Full Code Here

        BufferedImage test = testBuffImg.getSubimage(sizes[1],
            sizes[0], testBuffImg.getWidth()
                - (sizes[1] + sizes[3]),
            testBuffImg.getHeight() - (sizes[0] + sizes[2]));

                Comparator ic = comparator == null ? new DefaultComparator(base.getWidth()/configHelper.getGranularity(),
                    base.getHeight()/configHelper.getGranularity(), configHelper.getLeniency()):
                                comparator;
                BufferedImage imgc = ic.compare(base, test);
                if (imgc != null && checkMatrix(ic, configHelper.getLeniency())) {
                  File subDir = new File(resultDirStr + File.separator + caseID);
                  if (!subDir.isDirectory())
                    subDir.mkdirs();
                  subDir = new File(subDir, caseID + "_" + browserName + "_result" + postfix);
View Full Code Here

TOP

Related Classes of org.zkoss.ztl.util.image.Comparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.