I've got a canvas in HTML with an image I load. The image has size (width, height). I get 2 coordinates - (x1, y1) and (x2, y2) - those are the the left-top and right-top corners of the target transform.I've got a canvas in HTML with an image I load.