Package net.mindengine.rainbow4j.filters

Examples of net.mindengine.rainbow4j.filters.BlurFilter


        assertThat(spec.getMaxPixels(), is(112));
        assertThat(spec.getTolerance(), is(5));

        assertThat(spec.getOriginalFilters().size(), is(2));

        BlurFilter filter1 = (BlurFilter) spec.getOriginalFilters().get(0);
        assertThat(filter1.getRadius(), is(2));

        DenoiseFilter filter2 = (DenoiseFilter) spec.getOriginalFilters().get(1);
        assertThat(filter2.getRadius(), is(4));
    }
View Full Code Here


        List<ImageFilter> filters = new LinkedList<ImageFilter>();
        spec.setOriginalFilters(filters);
        spec.setSampleFilters(filters);

        if (blur > 0) {
            filters.add(new BlurFilter(blur));
        }
        spec.setTolerance(tolerance);
        spec.setSelectedArea(selectedArea);
        return spec;
    }
View Full Code Here

TOP

Related Classes of net.mindengine.rainbow4j.filters.BlurFilter

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.