Commit 7d25b136 by doszhang

dos

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