Examples of canWriteCompressed()


Examples of javax.imageio.ImageWriteParam.canWriteCompressed()

     * @param writer The ImageWriter we are going to use for image output.
     * @return ImageWriteParam configured for image output.
     */
    protected ImageWriteParam getImageWriteParameters(ImageWriter writer) {
        ImageWriteParam param = writer.getDefaultWriteParam();
        if (param.canWriteCompressed()) {
            if (writeCompressionMode != ImageWriteParam.MODE_COPY_FROM_METADATA) {
                param.setCompressionMode(writeCompressionMode);

                // see docs for IWP--only allowed to set type and quality if mode is EXPLICIT
                if (writeCompressionMode == ImageWriteParam.MODE_EXPLICIT) {
View Full Code Here

Examples of javax.imageio.plugins.jpeg.JPEGImageWriteParam.canWriteCompressed()

    // check the default progressive mode
    harness.check(param.getProgressiveMode() == ImageWriteParam.MODE_DISABLED);

    // check that compression is supported
    harness.check(param.canWriteCompressed());

    // check that a single compression type is supported
    harness.check(param.getCompressionTypes().length == 1);

    // check that the single compression type is called "JPEG"
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.