Package com.alibaba.simpleimage.jai.scale

Examples of com.alibaba.simpleimage.jai.scale.LanczosScaleOp


        return zoomOp;
    }

    public static PlanarImage lanczosScaleImage(PlanarImage input, double scale) {
        LanczosScaleOp lanczosOp = new LanczosScaleOp(scale, scale);
        BufferedImage dest = lanczosOp.compute(input.getAsBufferedImage());

        return PlanarImage.wrapRenderedImage(dest);
    }
View Full Code Here


    }

    class LanczosScaler implements Scaler {

        public PlanarImage doScale(PlanarImage in, float scale) {
            LanczosScaleOp lanczosOp = new LanczosScaleOp(scale, scale);
            BufferedImage dest = lanczosOp.compute(in.getAsBufferedImage());
           
            return PlanarImage.wrapRenderedImage(dest);
        }
View Full Code Here

        return zoomOp;
    }
   
    public PlanarImage doLanczos(PlanarImage op) throws Exception {
        LanczosScaleOp scaleOp = new LanczosScaleOp(dScale, dScale);
        BufferedImage dst = scaleOp.compute(op.getAsBufferedImage());
       
        return PlanarImage.wrapRenderedImage(dst);
    }
View Full Code Here

TOP

Related Classes of com.alibaba.simpleimage.jai.scale.LanczosScaleOp

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.