Package com.alibaba.simpleimage.render

Examples of com.alibaba.simpleimage.render.DrawTextItem


    }

    public DrawTextParameter createDrawTextParameter(String mainTxt, boolean drawMainTxt, boolean drawFootTxt) {
        List<DrawTextItem> textItems = new ArrayList<DrawTextItem>(4);
        if (drawMainTxt) {
            DrawTextItem mainTextItem = new FixDrawTextItem(mainTxt);
            textItems.add(mainTextItem);
        }

        if (drawFootTxt) {
            DrawTextItem footTextItem = new FootnoteDrawTextItem(mainTxt, "www.alibaba.com.cn");
            textItems.add(footTextItem);
        }

        DrawTextParameter dtp = new DrawTextParameter(textItems);
View Full Code Here


        }

        public DrawTextParameter createDrawTextParameter(String mainTxt, boolean drawMainTxt, boolean drawFootTxt) {
            List<DrawTextItem> textItems = new ArrayList<DrawTextItem>(4);
            if (drawMainTxt) {
                DrawTextItem mainTextItem = new FixDrawTextItem(mainTxt);
                textItems.add(mainTextItem);
            }

            if (drawFootTxt) {
                DrawTextItem footTextItem = new FootnoteDrawTextItem(mainTxt, "www.alibaba.com.cn");
                textItems.add(footTextItem);
            }

            DrawTextParameter dtp = new DrawTextParameter(textItems);
View Full Code Here

TOP

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

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.