Commit db7ddea3 by doszhang

dos

parent 7c3ef856

482 KB | W: | H:

471 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
......@@ -130,6 +130,7 @@ $(document).ready(function () {
var top = 0;
if (custom) {
// 自定义
top = 536;
ctx2.fillStyle = '#ffffff';
ctx2.font = 'bold 130px normal';
......@@ -138,16 +139,21 @@ $(document).ready(function () {
top = 536;
ctx2.fillStyle = '#ffffff';
ctx2.font = 'bold 130px normal';
} else {
} else if (firstSwiper.realIndex === 1) {
//模板2
top = 536;
ctx2.fillStyle = '#ffffff';
ctx2.font = 'bold 130px normal';
} else {
//模板3
top = 536;
ctx2.fillStyle = '#000000';
ctx2.font = 'bold 130px normal';
}
ctx2.textAlign = 'left';
ctx2.textBaseline = 'top';
var left = (img.width - ctx2.measureText(text).width) / 2;
var left = ((img.width - ctx2.measureText(text).width) / 2) - 10;
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