我也遇到了。 [代码]const ctx = wx.createCanvasContext([代码][代码]'testCanvas'[代码][代码])[代码][代码] [代码][代码]wx.downloadFile({[代码][代码] [代码][代码]url: [代码][代码]'https://cdn.maoka777.com/1519739243_b45291.png?imageMogr2/thumbnail/200x/interlace/1'[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]ctx.save()[代码][代码] [代码][代码]ctx.beginPath()[代码][代码] [代码][代码]ctx.arc(283, 75.5, 50, 0, 2*Math.PI) [代码][代码] [代码][代码]ctx.clip() [代码][代码] [代码][代码]ctx.drawImage(res.tempFilePath, 233, 25.5, 100, 100)[代码][代码] [代码][代码]ctx.restore()[代码] [代码] [代码][代码]ctx.save() [代码][代码] [代码][代码]ctx.beginPath()[代码][代码] [代码][代码]ctx.arc(50, 50, 25, 0, 2*Math.PI)[代码][代码] [代码][代码]ctx.clip()[代码][代码] [代码][代码]ctx.drawImage(res.tempFilePath, 25, 25)[代码][代码] [代码][代码]ctx.restore()[代码] [代码] [代码][代码]ctx.draw()[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][图片]
微信6.6.7 小程序Cavas clip方法连续裁剪图片时,只有第一张有效微信版本6.6.7, 小程序 canvas clip方法裁剪图片只有第一张会裁剪,后续图片都无法裁剪。 [图片]
2018-05-31