Examples of PNGOptions


Examples of com.sun.jimi.core.options.PNGOptions

                } else if ("png".equals(type)) {
                    // PNG
                    encoder = new PNGEncoder();
                    // the alpha parameter does mean something here:
                    ((PNGEncoder) encoder).setAlpha(new Boolean(alpha));
                    PNGOptions options = new PNGOptions();
                    // TODO: Use quality for CompressionType control, similar to ImageIOWrapper (?)
                    options.setCompressionType(PNGOptions.COMPRESSION_MAX);
                    source.setOptions(options);
                }
                // if no encoder was found, return false. let jimi handle this in the functions bellow
                if (encoder == null) return false;
                encoder.encodeImages(new JimiImageEnumeration(source), out);
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.