Commit e6a35a31 by doszhang

dos

parent 6d2a9c51
......@@ -501,15 +501,17 @@ function createPoster() {
let topHalf = new Image();
topHalf.src = "/Public/static/image2/poster-tophalf.png";
topHalf.onload = function () {
//画海报上半部分
posterCtx.drawImage(topHalf, posterLeft, posterTop, pxToRem(550 * 2), pxToRem(350 * 2));
posterCtx.save();
posterCtx.restore();
//画海报中部背景
posterCtx.fillStyle = '#ffffff';
posterCtx.fillRect(posterLeft, flagListTop, pxToRem(550 * 2), pxToRem(flagListHeight * 2));
posterCtx.fillRect(posterLeft, flagListTop - 5, pxToRem(550 * 2), pxToRem(flagListHeight * 2) + 10);
posterCtx.save();
posterCtx.restore();
//画海报上半部分
posterCtx.drawImage(topHalf, posterLeft, posterTop, pxToRem(550 * 2), pxToRem(350 * 2));
posterCtx.save();
posterCtx.restore();
//画海报底部
let bottomHalf = new Image();
bottomHalf.src = "/Public/static/image2/poster-bottomhalf.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