html2image-0.9.jar

上传者: love_5209 | 上传时间: 2022-01-07 17:51:22 | 文件大小: 13KB | 文件类型: -
HtmlImageGenerator imageGenerator = new HtmlImageGenerator(); imageGenerator.loadHtml("Hello World! Please goto Google."); imageGenerator.saveAsImage("hello-world.png"); imageGenerator.saveAsHtmlWithMap("hello-world.html", "hello-world.png"); HtmlImageGenerator Methods loadUrl(url) - Loads HTML from URL object or URL string. (从url载入html) loadHtml(html) - Loads HTML source. (载入本地html) saveAsImage(file) - Save loaded HTML as image. (以图片形式保存html) saveAsHtmlWithMap(file, imageUrl) - Creates an HTML file containing client-side image-map generated from HTML's links. (创建一个HTML文件包含客户端image-map) getLinks() - List all links in the HTML document and their corresponding href, target, title, position and dimension. (列出所有在HTML文档的链接和相应href、目标、头衔、位置和尺寸) getBufferedImage() - Get AWT buffered image of the HTML. (获得awt,html缓冲后的图片) getLinksMapMarkup(mapName) - Get HTML snippet of the client-side image-map generated from the links. (HTML代码段里获得的客户端image-map <地图>产生的链接) get/setOrientation(orientation) - Get/Set document orientation (left-to-right or right-to-left). (get/set文本定位) get/setSize(dimension) - Get/Set size of the generated image. (设置生成图片大小)

文件下载

评论信息

  • ookiki :
    可以使用,挺好。
    2018-09-25
  • xujunxiong :
    应该可以使用
    2017-12-12
  • laixinr :
    可以使用,不错`~~~~~~~
    2017-09-06
  • u012375702 :
    虽然没用上,但还是谢谢了
    2017-04-18
  • u010295735 :
    用了,非常不错的。
    2016-06-14

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明