Examples of calcScale()


Examples of com.volantis.map.ics.imageprocessor.convertor.ImageConvertor.calcScale()

                 * and try again.
                 */
                quality = params.getInteger(ParameterNames.MINIMUM_JPEG_QUALITY) / 100F;
                Dimension d = new Dimension(src.getWidth(), src.getHeight());
                int maxImageSize = params.getInteger(ParameterNames.MAX_IMAGE_SIZE);
                Dimension newD = cvt.calcScale(d, lastLength, maxImageSize);
                if (LOGGER.isDebugEnabled()) {
                    LOGGER.debug("Scaling image to width " + newD.width);
                }
                RenderedOp[] img = new RenderedOp[1];
                img[0] = src;
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.