Problems related to transform operation and hand-drawn trajectory operation after canvas inserts a picture

    After
  • canvas inserts a picture, operations such as rotation and magnification need to be carried out, and the track will be recorded by hand on the basis of the operation. The problem is that the rotation and magnification operation will change the original coordinates, and the hand drawing also needs to record the coordinates to draw the track. These two coordinates do not overlap, resulting in the contact position cannot be drawn by hand after magnification or rotation. I do not know how to solve the problem
  • .
  • is it because the screen coordinates are always obtained by the touchmove event when drawing, and whether there is a method to obtain the origin coordinates of the upper-left corner of canvas
  • do you have to use the method of zooming and rotating to get the corresponding conversion relationship, and hand-drawing the touch event with the converted value? But in this case, the rotation is based on the center point rotation coordinate system touch to obtain the coordinate system with the upper left corner as the origin
    and zooming, isn"t it very troublesome to convert

record the magnification state and magnification, which is used to calculate the hand-drawn position.


enlarge your corresponding canvas coordinate system
all the transform operations you do are converted to the transformation of the coordinate system

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-1e9a8d5-17e7.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-1e9a8d5-17e7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?