May 19, 2021 WeChat Mini Program Development Document
Drawing interfaces and methods
Draws the filled text on the canvas.
The text output on the canvas
The top left corner x coordinate position of the drawing text
Draws the y coordinate position in the upper left corner of the text
The maximum width that needs to be drawn is optional
const ctx = wx.createCanvasContext('myCanvas')
ctx.setFontSize(20)
ctx.fillText('Hello', 20, 20)
ctx.fillText('MINA', 100, 100)
ctx.draw()
Drawing interfaces and methods