为了生成一个活动海报, 不得不根据海报底图通过java代码手动生成一张海报 (包含用户名,用户简介, 商品图, 商品价格,商品二维码 宣传语等), 通过千辛万苦后, 终于画成功了, 我强了但也秃了, 这不是因为强而秃, 而是我的同事告诉我, 为什么不用通过网页html +css 写出一张海报, 然后java代码通过url保存为图片(?????) 我秃了
生成网页
java画图工具类:
Graphics2D - 参照这个
https://blog.csdn.net/Phenixfate/article/details/45399527?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
其中各元素x,y位置, 由设计师-蓝湖平台提供, 请注意蓝湖页面底图的界面比;
html转图片技术:
https://blog.csdn.net/lijinzhou2017/article/details/88714381?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
https://blog.csdn.net/SELECT_BIN/article/details/100979486?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task