Package com.alibaba.simpleimage.render

Examples of com.alibaba.simpleimage.render.WriteRender.dispose()


    protected void write(ImageRender dr) throws SimpleImageException, IOException {
        ImageRender wr = new WriteRender(dr, rpath.getCanonicalPath() + File.separator
                                             + "DRAWTEXT_334.jpg");
        wr.render();
        wr.dispose();
    }

    protected String getFileStr() throws IOException {
        return path.getCanonicalPath() + File.separator + "334.jpg";
    }
View Full Code Here


            wr.render();
        } finally {
            IOUtils.closeQuietly(inStream);
           
            if(wr != null) {
                wr.dispose();
            }
        }
    }
   
    void doScaleWork(File in, boolean toRGB, File out, ImageFormat format) throws Exception {
View Full Code Here

            wr.render();
        } finally {
            IOUtils.closeQuietly(inStream);
           
            if(wr != null) {
                wr.dispose();
            }
        }
    }
   
    void doScaleWork(File in, File out, ImageFormat format) throws Exception {
View Full Code Here

            wr.render();
        } finally {
            IOUtils.closeQuietly(inStream);
           
            if(wr != null) {
                wr.dispose();
            }
        }
    }
   
    public ImageWrapper read(File file) throws Exception {
View Full Code Here

            wr = new WriteRender(sr, output, format);

            wr.render();
        } finally {
            if (wr != null) {
                wr.dispose();
            }
        }
    }

    void draw(ImageWrapper imgWrapper, DrawTextParameter param, File output, ImageFormat format) throws Exception {
View Full Code Here

            wr = new WriteRender(sr, output, format);

            wr.render();
        } finally {
            if (wr != null) {
                wr.dispose();
            }
        }
    }
}
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.