WeChat Mini Programs generates pictures from view/ canvas canvas

background

Mini Program, who has been working as a picture editor recently, puts some small decorations (pictures) on a picture, and moves and zooms by monitoring gestures and using CSS"s transform.

question

but there is a problem, that is, how to save the small decoration on the picture as a whole picture?
searched the Internet for a long time and saw that some ideas were to write view to the canvas, but there was no solution. If you write the picture directly to the canvas, how can you zoom and move it? please consult the bosses

.
After

is decorated, get the coordinates and size of each picture, draw it on the canvas in turn, and then save it.

Menu