Commit 5c45fcd7 by doszhang

dos

parent d7d998f4
...@@ -133,7 +133,7 @@ $(document).ready(function () { ...@@ -133,7 +133,7 @@ $(document).ready(function () {
ctx2.textAlign = 'left'; ctx2.textAlign = 'left';
ctx2.textBaseline = 'top'; ctx2.textBaseline = 'top';
var left = (img.width - ctx2.measureText(text).width) / 2; var left = (canvas2.width - ctx2.measureText(text).width) / 2;
alert(canvas2.width) alert(canvas2.width)
alert(left) alert(left)
ctx2.shadowBlur = 0; ctx2.shadowBlur = 0;
......
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