Commit 76638b59 by doszhang

dos

parent e3f72e17
......@@ -265,7 +265,8 @@ var drawImage = function () {
ctx.translate(imgInfo.x, imgInfo.y);
ctx.rotate(Math.PI / 180 * imgInfo.rotation);
ctx.scale(imgInfo.scale, imgInfo.scale);
ctx.drawImage(uploadedImg, -uploadedImg.width / 2, -uploadedImg.height / 2, uploadedImg.width * 2, uploadedImg.height * 2);
alert(imgInfo.scale)
ctx.drawImage(uploadedImg, -uploadedImg.width / 2, -uploadedImg.height / 2);
ctx.restore();
}
var img = loadedImages['/Public/static/image2/cover/3.png'];
......
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