Draw a long picture in the canvas of WeChat Mini Programs

set the canvas size to 750rpx and 1340rpx; you want to set the background image with a picture drawImage. But the start position in canvas is 0, but I don"t know what to do when setting the end position. Ask God for an answer. Thank you

Mar.16,2021

you can use wx.chooseImage (OBJECT) to get the length and width of the picture, and then set it to the parameters when drawing.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c2b482-33a6e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c2b482-33a6e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?