package hrhx.dhm.util;
import gui.ava.html.image.generator.HtmlImageGenerator;
public class Html2ImageTest {
public static void main(String[] args){
HtmlImageGenerator imageGenerator = new HtmlImageGenerator();
//不能加入css,有什么用
//imageGenerator.loadUrl("http://www.jd.com/");
imageGenerator.loadHtml("<b>Hello World!</b> Please goto <a title=\"Goto Google\" href=\"http://www.google.com\">Google</a>.");
imageGenerator.saveAsImage("hello-world.png");
imageGenerator.saveAsHtmlWithMap("hello-world.html", "hello-world.png");
}
}
评论0