Examples of LCROIShape


Examples of com.lightcrafts.jai.LCROIShape

        RasterAccessor d = new RasterAccessor(dest, destRect,
                                              formatTags[2], getColorModel());

        Raster roi = null;
        if (hasMask()) {
            LCROIShape lcROI = (LCROIShape) mask;

            if (lcROI.intersects(destRect))
                roi = lcROI.getData(destRect);
            else {
                if (opacity > 0) {
                    assert dest.getBounds().equals(sources[1].getBounds());

                    // dest.setRect(sources[1]);
View Full Code Here

Examples of com.lightcrafts.jai.LCROIShape

                        RenderedOp blender = (RenderedOp) softBlender.get();

                        if (validRegion(getRegion())
                            && (!rendering.getInputTransform().equals(lastTransform)
                                || (blender != null && blender.getParameters().get(2) != mask))) {
                            mask = new LCROIShape(getRegion(), rendering.getInputTransform());
                            blender = null;
                        } else if (getRegion() == null)
                            mask = null;

                        if (colorSelection != null && !colorSelection.isAllSelected()
View Full Code Here

Examples of com.lightcrafts.jai.LCROIShape

                public Point2D getTranslation() {
                    return contour.getTranslation();
                }
            };

            LCROIShape mask = new LCROIShape(r, rendering.getInputTransform());

            pb = new ParameterBlock();
            pb.addSource(formatted);
            pb.addSource(image);
            pb.add("Normal");
View Full Code Here

Examples of com.lightcrafts.jai.LCROIShape

        return mask != null;
    }

    public void setRegion(Region region) {
        if (validRegion(region)) {
            mask = new LCROIShape(region, rendering.getInputTransform());
        } else if (region == null || region.getContours().size() == 0)
            mask = null;
        lastTransform = rendering.getInputTransform();
        super.setRegion(region);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.