java 代码生成分享海报,仅供参考

为了生成一个活动海报, 不得不根据海报底图通过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

评论

h
hw_7864

⭐️ Admin快速开发: https://show.cool-admin.com/

赞 0
h
hw_7864

⭐️ 官方文档: https://cool-js.com

赞 0
h
hw_7864

⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld

赞 0