zhaobinglong / myBlog

https://zhaobinglong.github.io/myBlog/
MIT License
7 stars 0 forks source link

canvas在小程序中的应用 #140

Open zhaobinglong opened 3 years ago

zhaobinglong commented 3 years ago

绘制一张图片到canvas

const ctx = wx.createCanvasContext('shareCanvas');
ctx.drawImage('../img/pinduoduo.jpg', 0, 0, 500*x, 812*x);

绘制一段文字到canvas

导出的图片分辨率太低

zhaobinglong commented 3 years ago

绘制圆形图片