wx.canvasToTempFilePath({
x: 0,
y: 0,
width: 300,
height: 480,
destWidth: 300 * wx.getSystemInfoSync().pixelRatio,
destHeight: 480 * wx.getSystemInfoSync().pixelRatio,
canvasId: 'bigCode',
success(res) {
that.setData({
shareImgSrc: res.tempFilePath
}, () => {
console.log(that.data.shareImgSrc)
})
}
})
小程序画布保存图片模糊解决办法
最新推荐文章于 2024-05-28 10:44:06 发布