微信小程序使用wx.canvasGetImageData将图片格式改成base64

首先,此方法属于微信小程序的canva标签的使用API,必须在wxml内写入canvas标签;canvas 使用过程当中,var ctx = wx.createCanvasContext(canvasid)                //操做对应id的canvas小程序 ctx.drawImage(imgPath,0,0,width,height)                       
相关文章
相关标签/搜索