Package com.mortennobel.imagescaling

Examples of com.mortennobel.imagescaling.MultiStepRescaleOp


        if (width > getWidth()) {
            throw new IllegalArgumentException("Width "+ width +" exceeds width of image, which is "+ getWidth());
        }
       
        int nHeight = width * img.getHeight() / img.getWidth();
        MultiStepRescaleOp rescale = new MultiStepRescaleOp(width, nHeight);
        rescale.setUnsharpenMask(AdvancedResizeOp.UnsharpenMask.Soft);
        BufferedImage resizedImage = rescale.filter(img, null);

        return new Image(resizedImage, sourceType);
    }
View Full Code Here

TOP

Related Classes of com.mortennobel.imagescaling.MultiStepRescaleOp

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.