Package org.apache.xmlgraphics.image.loader

Examples of org.apache.xmlgraphics.image.loader.ImageSessionContext


     */
    protected void drawImageUsingURI(String uri, Rectangle rect) {
        ImageManager manager = getFopFactory().getImageManager();
        ImageInfo info = null;
        try {
            ImageSessionContext sessionContext = getUserAgent().getImageSessionContext();
            info = manager.getImageInfo(uri, sessionContext);

            drawImageUsingImageHandler(info, rect);
        } catch (ImageException ie) {
            ResourceEventProducer eventProducer = ResourceEventProducer.Provider.get(
View Full Code Here


        ImageManager imageManager = userAgent.getFactory().getImageManager();

        SVGUserAgent svgUserAgent
            = new SVGUserAgent(userAgent, new AffineTransform());

        ImageSessionContext imageSessionContext = userAgent.getImageSessionContext();

        FontInfo fontInfo = g2d.getFontInfo();
        return new AFPBridgeContext(svgUserAgent, fontInfo, imageManager, imageSessionContext,
                new AffineTransform(), g2d);
    }
View Full Code Here

        uri = URISpecification.getURL(uri);

        ImageManager manager = getUserAgent().getFactory().getImageManager();
        ImageInfo info = null;
        try {
            ImageSessionContext sessionContext = getUserAgent().getImageSessionContext();
            info = manager.getImageInfo(uri, sessionContext);
            Map hints = ImageUtil.getDefaultHints(sessionContext);
            org.apache.xmlgraphics.image.loader.Image img = manager.getImage(
                    info, FLAVOURS, hints, sessionContext);
            if (img instanceof ImageGraphics2D) {
View Full Code Here

            .getProperty(Java2DRendererContextConstants.JAVA2D_STATE);

        ImageManager manager = ua.getFactory().getImageManager();
        ImageInfo info = null;
        try {
            ImageSessionContext sessionContext = ua.getImageSessionContext();
            info = manager.getImageInfo(uri, sessionContext);
            final ImageFlavor[] flavors = new ImageFlavor[] {
                    ImageFlavor.GRAPHICS2D, ImageFlavor.BUFFERED_IMAGE,
                    ImageFlavor.RENDERED_IMAGE, ImageFlavor.XML_DOM };
            Map hints = ImageUtil.getDefaultHints(sessionContext);
View Full Code Here

        uri = URISpecification.getURL(uri);
        ImageInfo info = null;
        try {
            ImageManager manager = getUserAgent().getFactory()
                .getImageManager();
            ImageSessionContext sessionContext = getUserAgent()
                .getImageSessionContext();
            info = manager.getImageInfo(uri, sessionContext);
        } catch (ImageException ie) {
            log.error("Error while processing image: "
                    + (info != null ? info.toString() : uri), ie);
View Full Code Here

        final String uri = form.getImageURI();

        ImageManager manager = userAgent.getFactory().getImageManager();
        ImageInfo info = null;
        try {
            ImageSessionContext sessionContext = userAgent.getImageSessionContext();
            info = manager.getImageInfo(uri, sessionContext);

            //Create a rendering context for form creation
            PSRenderingContext formContext = new PSRenderingContext(
                    userAgent, gen, fontInfo, true);
View Full Code Here

TOP

Related Classes of org.apache.xmlgraphics.image.loader.ImageSessionContext

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.