Examples of canWriteProgressive()


Examples of com.google.code.appengine.imageio.ImageWriteParam.canWriteProgressive()

                            "Custom");
                    properties.setProperty(formatKey + COMPRESS_QUALITY, 0.0f);
                }

                // progressive
                if (param.canWriteProgressive()) {
                    properties
                            .setProperty(
                                    formatKey + PROGRESSIVE,
                                    param.getProgressiveMode() != ImageWriteParam.MODE_DISABLED);
                } else {
View Full Code Here

Examples of com.google.code.appengine.imageio.ImageWriteParam.canWriteProgressive()

                if (canWriteUncompressed(format)) {
                    param.setCompressionMode(ImageWriteParam.MODE_DISABLED);
                }
            }
        }
        if (param.canWriteProgressive()) {
            if (user.isProperty(formatKey + PROGRESSIVE)) {
                param.setProgressiveMode(ImageWriteParam.MODE_DEFAULT);
            } else {
                param.setProgressiveMode(ImageWriteParam.MODE_DISABLED);
            }
View Full Code Here

Examples of javax.imageio.ImageWriteParam.canWriteProgressive()

            if (types != null && param.getCompressionType() == null) {
                param.setCompressionType(types[0]);
            }
            param.setCompressionQuality(quality);
        }
        if (param.canWriteProgressive())
            param.setProgressiveMode(ImageWriteParam.MODE_DISABLED);
        // if bi has type ARGB and alpha is false, we have to tell the writer to not use the alpha channel:
        // this is especially needed for jpeg files where imageio seems to produce wrong jpeg files right now...
        if (bi.getType() == BufferedImage.TYPE_INT_ARGB
            && !alpha) {
View Full Code Here

Examples of javax.imageio.ImageWriteParam.canWriteProgressive()

            ImageWriter writer = it.next();
            ImageWriteParam param = writer.getDefaultWriteParam();
            System.out.println(MessageFormat.format(rb.getString("writer"),
                    writer.getClass().getName(),
                    param.canWriteCompressed(),
                    param.canWriteProgressive(),
                    param.canWriteTiles(),
                    param.canOffsetTiles(),
                    param.canWriteCompressed()
                        ? Arrays.toString(param.getCompressionTypes())
                        : null));
View Full Code Here

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

    // check that tiling is not supported
    harness.check(!param.canWriteTiles());

    // check that progressive encoding is supported
    harness.check(param.canWriteProgressive());

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

    // check that compression is supported
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.