Examples of writeImage()


Examples of magick.MagickImage.writeImage()

            sharpened.writeImage(info);

            // Despeckle image
            MagickImage despeckled = image.despeckleImage();
            despeckled.setFileName("despeckled.jpg");
            despeckled.writeImage(info);

            // Convolve image
            double[] kernel = new double[9];
            for (int i = 0; i < 9; i++) {
                kernel[i] = 1.0;
View Full Code Here

Examples of magick.MagickImage.writeImage()

                kernel[i] = 1.0;
            }
            kernel[4] = 2.0;
            MagickImage convolvedImage = image.convolveImage(3, kernel);
            convolvedImage.setFileName("convolved.jpg");
            convolvedImage.writeImage(info);

            // Finally display the image.
            MagickWindow window = new MagickWindow(image);
            window.setVisible(true);
View Full Code Here

Examples of org.apache.batik.ext.awt.image.spi.ImageWriter.writeImage()

    public void encodeImage(BufferedImage buf, OutputStream os)
            throws IOException {
        Base64EncoderStream b64Encoder = new Base64EncoderStream(os);
        ImageWriter writer = ImageWriterRegistry.getInstance()
            .getWriterFor("image/png");
        writer.writeImage(buf, b64Encoder);
        b64Encoder.close();
    }

    public int getBufferedImageType(){
        return BufferedImage.TYPE_INT_ARGB;
View Full Code Here

Examples of org.apache.batik.refimpl.transcoder.ImageTranscoder.writeImage()

        painter.paint(g);
        g.dispose();

        try{
            transcoder.writeImage(buf, new FileOutputStream(testImageName));
        }
        catch(Exception e){
        }
    }
View Full Code Here

Examples of org.apache.batik.refimpl.transcoder.JpegTranscoder.writeImage()

                    public void run() {
                        try {
                            currentExportPath = f.getCanonicalPath();
                            OutputStream ostream =
                              new BufferedOutputStream(new FileOutputStream(f));
                            trans.writeImage(img, ostream);
                            ostream.flush();
                            ostream.close();
                            statusBar.setMessage(
                                resources.getString("Document.export"));
                        } catch (IOException ex) { }
View Full Code Here

Examples of org.apache.batik.refimpl.transcoder.PngTranscoder.writeImage()

                    public void run() {
                        try {
                            currentExportPath = f.getCanonicalPath();
                            OutputStream ostream =
                              new BufferedOutputStream(new FileOutputStream(f));
                            trans.writeImage(img, ostream);
                            ostream.flush();
                            ostream.close();
                            statusBar.setMessage(
                                resources.getString("Document.export"));
                        } catch (IOException ex) { }
View Full Code Here

Examples of org.apache.batik.transcoder.image.ImageTranscoder.writeImage()

                        public void run() {
                            try {
                                currentExportPath = f;
                                OutputStream ostream =
                                    new BufferedOutputStream(new FileOutputStream(f));
                                trans.writeImage(img, new TranscoderOutput(ostream));
                                ostream.flush();
                                ostream.close();
                            } catch (Exception ex) { }
                            statusBar.setMessage
                                (resources.getString("Message.done"));
View Full Code Here

Examples of org.apache.batik.transcoder.image.ImageTranscoder.writeImage()

                        public void run() {
                            try {
                                currentExportPath = f;
                                OutputStream ostream =
                                    new BufferedOutputStream(new FileOutputStream(f));
                                trans.writeImage(img,
                                                 new TranscoderOutput(ostream));
                                ostream.flush();
                            } catch (Exception ex) {}
                            statusBar.setMessage
                                (resources.getString("Message.done"));
View Full Code Here

Examples of org.apache.batik.transcoder.image.ImageTranscoder.writeImage()

                        public void run() {
                            try {
                                currentExportPath = f;
                                OutputStream ostream = new BufferedOutputStream
                                    (new FileOutputStream(f));
                                trans.writeImage
                                    (img, new TranscoderOutput(ostream));
                                ostream.flush();
                            } catch (Exception ex) {}
                            statusBar.setMessage
                                (resources.getString("Message.done"));
View Full Code Here

Examples of org.apache.batik.transcoder.image.ImageTranscoder.writeImage()

                        public void run() {
                            try {
                                currentExportPath = f;
                                OutputStream ostream =
                                    new BufferedOutputStream(new FileOutputStream(f));
                                trans.writeImage(img, new TranscoderOutput(ostream));
                                ostream.flush();
                                ostream.close();
                            } catch (Exception ex) { }
                            statusBar.setMessage
                                (resources.getString("Message.done"));
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.