1、
2. The above is the entire content of this article. I hope it will be helpful to everyone’s study and I hope everyone will support me more.
3. Also, the size of the generated image should be twice as large as the size of the drawing, so that the image will not be distorted and it is clearer. This is the method:
4. wx.canvasToTempFilePath() first two parameters are the size of canvas, then the size of the generated image, and the ID of canvas
5. Using the above two components can be covered on the canvas.
6. The examples in this article share with you the specific code of drawing pictures on WeChat applets to send to Moments for your reference. The specific content is as follows
7. Note: Canvas drawing does not support network pictures, and you need to save the network pictures for local pictures