Package org.foray.graphic

Examples of org.foray.graphic.TempImage


            // error
            break;
        }

        try {
            final Graphic graphic = new TempImage(null, width, height, result);
            final AffineTransform at = getTransform();
            final double[] matrix =
                    new double[PsUtil.MATRIX_QTY_ELEMENTS];
            at.getMatrix(matrix);
            this.out.write("gsave");
            final Shape imclip = getClip();
            writeClip(imclip);
            this.out.write("1000 -1000 scale");
            // psRenderer.write("" + matrix[0] + " " + matrix[1] +
            // " " + matrix[2] + " " + matrix[3] + " " +
            // matrix[4] + " " + matrix[5] + " cm\n");

            /* TODO: The following line is commented out to avoid having this
             * class dependent on the PostScript renderer. After this is all
             * moved to the Graphics package, this needs to be reworked.
             * The "graphic" needs to be a real Graphic instance of the proper
             * type, and should then be converted to PostScript here. */
            graphic.close();
//            this.psRenderer.renderBitmap(graphic, x, -y, width, height);
            this.out.write("grestore");
        } catch (final IOException e) {
            this.logger.error(e.getMessage());
        }
View Full Code Here

TOP

Related Classes of org.foray.graphic.TempImage

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.