Examples of RasterImageNode


Examples of org.apache.batik.gvt.RasterImageNode

     */
    protected static GraphicsNode createRasterImageNode(BridgeContext ctx,
                                                        Element       e,
                                                        ParsedURL     purl) {

        RasterImageNode node = new RasterImageNode();

        ImageTagRegistry reg = ImageTagRegistry.getRegistry();
        Filter           img = reg.readURL(purl, extractColorSpace(e, ctx));
        Object           obj = img.getProperty
            (SVGBrokenLinkProvider.SVG_BROKEN_LINK_DOCUMENT_PROPERTY);
        if ((obj != null) && (obj instanceof SVGDocument)) {
            // Ok so we are dealing with a broken link.
            return createSVGImageNode(ctx, e, (SVGDocument)obj);
        }
        node.setImage(img);
  Rectangle2D imgBounds = img.getBounds2D();
  node.setImageBounds(imgBounds);
        Rectangle2D bounds = getImageBounds(ctx, e);

  // create the implicit viewBox for the raster image. The viewBox for a
  // raster image is the size of the image
  float [] vb = new float[4];
View Full Code Here

Examples of org.apache.batik.gvt.RasterImageNode

     */
    protected static GraphicsNode createRasterImageNode(BridgeContext ctx,
                                                        Element       e,
                                                        ParsedURL     purl) {

        RasterImageNode node = new RasterImageNode();

        ImageTagRegistry reg = ImageTagRegistry.getRegistry();
        Filter           img = reg.readURL(purl, extractColorSpace(e, ctx));
        SVGDocument errDoc = (SVGDocument)img.getProperty
            (SVGBrokenLinkProvider.SVG_BROKEN_LINK_DOCUMENT_PROPERTY);
        if (errDoc != null) {
            // Ok so we are dealing with a broken link.
            return createSVGImageNode(ctx, e, errDoc);
        }
        node.setImage(img);
  Rectangle2D imgBounds = img.getBounds2D();
  node.setImageBounds(imgBounds);
        Rectangle2D bounds = getImageBounds(ctx, e);

  // create the implicit viewBox for the raster image. The viewBox for a
  // raster image is the size of the image
  float [] vb = new float[4];
View Full Code Here

Examples of org.apache.flex.forks.batik.gvt.RasterImageNode

            // Ok so we are dealing with a broken link.
            SVGOMDocument doc = (SVGOMDocument)obj;
            return createSVGImageNode(ctx, e, doc);
        }

        RasterImageNode node = new RasterImageNode();
        node.setImage(img);
        Rectangle2D imgBounds = img.getBounds2D();

        // create the implicit viewBox for the raster image. The viewBox for a
        // raster image is the size of the image
        float [] vb = new float[4];
View Full Code Here

Examples of org.apache.flex.forks.batik.gvt.RasterImageNode

            SVGDocument doc = ctx.getUserAgent().getBrokenLinkDocument
                (e, purl.toString(), msg);
            return createSVGImageNode(ctx, e, doc);
        }

        RasterImageNode node = new RasterImageNode();
        node.setImage(img);
        Rectangle2D imgBounds = img.getBounds2D();

        // create the implicit viewBox for the raster image. The viewBox for a
        // raster image is the size of the image
        float [] vb = new float[4];
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.