Commit 5427158f by doszhang

dos

parent 50a6e0ba

4 KB | W: | H:

4 KB | W: | H:

Public/static/image2/cover/._1.png
Public/static/image2/cover/._1.png
Public/static/image2/cover/._1.png
Public/static/image2/cover/._1.png
  • 2-up
  • Swipe
  • Onion skin

95.8 KB | W: | H:

434 KB | W: | H:

Public/static/image2/cover/3.png
Public/static/image2/cover/3.png
Public/static/image2/cover/3.png
Public/static/image2/cover/3.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -118,9 +118,9 @@ $(document).ready(function () {
var top = 0;
if (custom) {
top = 0;
top = 470;
ctx2.fillStyle = '#000000';
ctx2.font = 'bolder 130px fzlt';
ctx2.font = 'bolder 70px fzlt';
} else if (firstSwiper.realIndex === 0) {
top = 490;
ctx2.fillStyle = '#000000';
......@@ -133,9 +133,7 @@ $(document).ready(function () {
ctx2.textAlign = 'left';
ctx2.textBaseline = 'top';
var left = (canvas2.width - ctx2.measureText(text).width) / 2;
alert(canvas.width)
alert(left)
var left = (img.width - ctx2.measureText(text).width) / 2;
ctx2.shadowBlur = 0;
ctx2.fillText(text, left, top * 2);
$('.page:visible').find('.showBox').show().html('<img src="' + canvas2.toDataURL('image/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