Examples of pngEncode()


Examples of com.keypoint.PngEncoder.pngEncode()

     */
    public void encode(BufferedImage bufferedImage, OutputStream outputStream) throws IOException {
        if (bufferedImage == null) throw new IllegalArgumentException("Null 'image' argument.");
        if (outputStream == null) throw new IllegalArgumentException("Null 'outputStream' argument.");
        PngEncoder encoder = new PngEncoder(bufferedImage, this.encodingAlpha, 0, this.quality);
        outputStream.write(encoder.pngEncode());
    }

}
View Full Code Here

Examples of com.keypoint.PngEncoder.pngEncode()

        if (bufferedImage == null) {
            throw new IllegalArgumentException("Null 'image' argument.");
        }
        PngEncoder encoder = new PngEncoder(bufferedImage, this.encodingAlpha,
                0, this.quality);
        return encoder.pngEncode();
    }

    /**
     * Encodes an image in PNG format and writes it to an
     * <code>OutputStream</code>.
 
View Full Code Here

Examples of com.keypoint.PngEncoder.pngEncode()

        if (outputStream == null) {
            throw new IllegalArgumentException("Null 'outputStream' argument.");
        }
        PngEncoder encoder = new PngEncoder(bufferedImage, this.encodingAlpha,
                0, this.quality);
        outputStream.write(encoder.pngEncode());
    }

}
View Full Code Here

Examples of com.keypoint.PngEncoder.pngEncode()

        if (bufferedImage == null) {
            throw new IllegalArgumentException("Null 'image' argument.");
        }
        PngEncoder encoder = new PngEncoder(bufferedImage, this.encodingAlpha,
                0, this.quality);
        return encoder.pngEncode();
    }

    /**
     * Encodes an image in PNG format and writes it to an
     * <code>OutputStream</code>.
 
View Full Code Here

Examples of com.keypoint.PngEncoder.pngEncode()

        if (outputStream == null) {
            throw new IllegalArgumentException("Null 'outputStream' argument.");
        }
        PngEncoder encoder = new PngEncoder(bufferedImage, this.encodingAlpha,
                0, this.quality);
        outputStream.write(encoder.pngEncode());
    }

}
View Full Code Here

Examples of keypoint.PngEncoder.pngEncode()

        final PngEncoder png = new PngEncoder(bv.getEntireBoardImage(),
                PngEncoder.NO_ALPHA, filter, compressionLevel);
        try {
            final FileOutputStream outfile = new FileOutputStream(curfileImage);
            byte[] pngbytes;
            pngbytes = png.pngEncode();
            if (pngbytes == null) {
                System.out.println("Failed to save board as image:Null image"); //$NON-NLS-1$
            } else {
                outfile.write(pngbytes);
            }
View Full Code Here

Examples of keypoint.PngEncoder.pngEncode()

        PngEncoder png = new PngEncoder(bv.getEntireBoardImage(),
                PngEncoder.NO_ALPHA, filter, compressionLevel);
        try {
            FileOutputStream outfile = new FileOutputStream(curfileImage);
            byte[] pngbytes;
            pngbytes = png.pngEncode();
            if (pngbytes == null) {
                System.out.println("Failed to save board as image:Null image"); //$NON-NLS-1$
            } else {
                outfile.write(pngbytes);
            }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.PngEncoder.pngEncode()

        pageDrawable.draw(g2, rect);
        g2.dispose();

        // convert to PNG ...
        final PngEncoder encoder = new PngEncoder(image, true, 0, 9);
        final byte[] data = encoder.pngEncode();

        final BufferedOutputStream out = new BufferedOutputStream
            (new FileOutputStream(fileNameFormated));
        out.write(data);
        out.close();
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.PngEncoder.pngEncode()

      {
        final PngEncoder encoder = new PngEncoder();
        encoder.setCompressionLevel(6);
        encoder.setEncodeAlpha(false);
        encoder.setImage(image);
        final byte[] bytes = encoder.pngEncode();
        fout.write(bytes);
      }
      finally
      {
        fout.close();
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.PngEncoder.pngEncode()

        pageDrawable.draw(g2, rect);
        g2.dispose();

        // convert to PNG ...
        final PngEncoder encoder = new PngEncoder(image, true, 0, 9);
        final byte[] data = encoder.pngEncode();

        final BufferedOutputStream out = new BufferedOutputStream
            (new FileOutputStream(fileNameFormated));
        out.write(data);
        out.close();
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.