Package com.alibaba.simpleimage.render

Examples of com.alibaba.simpleimage.render.WatermarkRender


        }
       
        ImageRender wi = null;
        WatermarkParameter param = new WatermarkParameter(wmImage, 0.3f, 0, 0);
        try {
            wi = new WatermarkRender(srcImageWrapper, param);
            srcImageWrapper = wi.render();
        } finally {
            if(wi != null) {
                wi.dispose();
            }
View Full Code Here


        InputStream in = null;
        ImageRender sr = null;
        try {
            in = new FileInputStream(new File(dir, bg));
            ImageRender rr = new ReadRender(in, true);
            sr = new WatermarkRender(rr, createParam(wmDir, wm, alpha, x, y));
            write(sr, alpha + "-result-" + bg);
        } finally {
            if (sr != null) {
                sr.dispose();
            }
View Full Code Here

TOP

Related Classes of com.alibaba.simpleimage.render.WatermarkRender

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.