Package org.apache.xmlgraphics.ps

Examples of org.apache.xmlgraphics.ps.ImageEncoder


        PSGenerator gen = psContext.getGenerator();
        ImageRawPNG png = (ImageRawPNG) image;
        ImageInfo info = image.getInfo();
        String imageDescription = info.getMimeType() + " " + info.getOriginalURI();

        ImageEncoder encoder = new ImageEncoderPNG(png);
        FormGenerator formGen = new ImageFormGenerator(form.getName(), imageDescription, info.getSize()
                .getDimensionPt(), info.getSize().getDimensionPx(), encoder, png.getColorSpace(),
                false);
        formGen.generate(gen);
    }
View Full Code Here


        float w = (float) pos.getWidth() / 1000f;
        float h = (float) pos.getHeight() / 1000f;
        Rectangle2D targetRect = new Rectangle2D.Double(x, y, w, h);

        RenderedImage ri = imageRend.getRenderedImage();
        ImageEncoder encoder = ImageEncodingHelper.createRenderedImageEncoder(ri);
        Dimension imgDim = new Dimension(ri.getWidth(), ri.getHeight());
        String imgDescription = ri.getClass().getName();
        ImageEncodingHelper helper = new ImageEncodingHelper(ri);
        ColorModel cm = helper.getEncodedColorModel();
View Full Code Here

TOP

Related Classes of org.apache.xmlgraphics.ps.ImageEncoder

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.