Package com.sun.jimi.core.encoder.jpg

Examples of com.sun.jimi.core.encoder.jpg.JPGEncoder


                JimiImage source = Jimi.createRasterImage(wrapper.getSource());
                JimiEncoder encoder = null;
                if ("jpg".equals(type) || "jpeg".equals(type)) {
                    // JPEG
                    encoder = new JPGEncoder();
                    // the quality value does mean something here and can be specified:
                    if (quality >= 0.0 && quality <= 1.0) {
                        JPGOptions options = new JPGOptions();
                        options.setQuality(Math.round(quality * 100));
                        source.setOptions(options);
View Full Code Here

TOP

Related Classes of com.sun.jimi.core.encoder.jpg.JPGEncoder

Copyright © 2018 www.massapicom. 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.