Commit 2350f6b8 by doszhang

dos

parent 479d2c64
......@@ -226,13 +226,13 @@ $(document).ready(function () {
} else {
scale = 1000 / height;
}
// uploadctx.scale(scale, scale);
uploadedImg.width = width * 2;
uploadedImg.height = height * 2;
// uploadctx.translate(uploadedImg.width / 2, uploadedImg.height / 2);
// uploadctx.scale(scale, scale);
// uploadctx.rotate(Math.PI / 180 * rotation);
uploadctx.drawImage(objectImg, -objectImg.width, -objectImg.height, objectImg.width * 2, objectImg.height * 2);
uploadctx.scale(scale, scale);
uploadedImg.width = width;
uploadedImg.height = height;
uploadctx.translate(uploadedImg.width / 2, uploadedImg.height / 2);
uploadctx.scale(scale, scale);
uploadctx.rotate(Math.PI / 180 * rotation);
// uploadctx.drawImage(objectImg, -objectImg.width / 2, -objectImg.height / 2);
// $('.canvas').html( '<img src="'+base64Img+'">');
drawImage();
......
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