Package org.apache.batik.gvt.filter

Examples of org.apache.batik.gvt.filter.GraphicsNodeRable8Bit


    protected static Filter createSVGFeImage(BridgeContext ctx,
                                             Rectangle2D primitiveRegion,
                                             Element refElement) {

        GraphicsNode node = ctx.getGVTBuilder().build(ctx, refElement);
        Filter filter = new GraphicsNodeRable8Bit
            (node, ctx.getGraphicsNodeRenderContext());

        // Need to translate the image to the x, y coordinate to
        // have the same behavior as the <use> element
        // <!> FIX ME? I THINK THIS IS ONLY PARTIALLY IMPLEMENTING THE SPEC.
View Full Code Here


                     strokeWidth * markerHeight - offsets[2] - offsets[0]);
            }

            CompositeGraphicsNode comp = new CompositeGraphicsNode();
            comp.getChildren().add(markerContentNode);
            Filter clipSrc = new GraphicsNodeRable8Bit
                (comp, ctx.getGraphicsNodeRenderContext());
            comp.setClip(new ClipRable8Bit(clipSrc, markerClip));
            markerContentNode = comp;
        }

View Full Code Here

        if (clip != null) {
            try {
                at = at.createInverse(); // clip in user space
                clip = at.createTransformedShape(clip);
                Filter filter = new GraphicsNodeRable8Bit
                    (gn, ctx.getGraphicsNodeRenderContext());
                gn.setClip(new ClipRable8Bit(filter, clip));
            } catch (NoninvertibleTransformException ex) {}
        }
View Full Code Here

TOP

Related Classes of org.apache.batik.gvt.filter.GraphicsNodeRable8Bit

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.