Package net.mindengine.rainbow4j

Examples of net.mindengine.rainbow4j.ComparisonOptions


        // TODO fix. should only take screenshot once per the same page if there are multiple image comparison checks

        int tolerance = spec.getTolerance() != null ? Math.abs(spec.getTolerance()) : 25;

        ComparisonOptions options = new ComparisonOptions();
        options.setStretchToFit(spec.isStretch());
        options.setOriginalFilters(spec.getOriginalFilters());
        options.setSampleFilters(spec.getSampleFilters());
        options.setMapFilters(spec.getMapFilters());
        options.setTolerance(tolerance);


        Rect elementArea = pageElement.getArea();

        ImageCheck minCheck = new ImageCheck(spec.getImagePaths().get(0), elementArea.getHeight() * elementArea.getWidth() * 2, null, null);
View Full Code Here

TOP

Related Classes of net.mindengine.rainbow4j.ComparisonOptions

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.