Commit 4cd4621d by doszhang

dos

parent eae53108
...@@ -229,7 +229,7 @@ $(document).ready(function () { ...@@ -229,7 +229,7 @@ $(document).ready(function () {
uploadctx.scale(scale, scale); uploadctx.scale(scale, scale);
uploadedImg.width = width; uploadedImg.width = width;
uploadedImg.height = height; uploadedImg.height = height;
uploadctx.translate(uploadedImg.width, uploadedImg.height); uploadctx.translate(uploadedImg.width / 4, uploadedImg.height / 4);
uploadctx.scale(scale, scale); uploadctx.scale(scale, scale);
uploadctx.rotate(Math.PI / 180 * rotation); uploadctx.rotate(Math.PI / 180 * rotation);
uploadctx.drawImage(objectImg, -objectImg.width / 2, -objectImg.height / 2); uploadctx.drawImage(objectImg, -objectImg.width / 2, -objectImg.height / 2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment