Commit 6ef61d59 by kubisk

dos

parent ed2822dd

83.2 KB | W: | H:

2.39 KB | W: | H:

Public/static/image2/poster1-1.png
Public/static/image2/poster1-1.png
Public/static/image2/poster1-1.png
Public/static/image2/poster1-1.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -318,15 +318,15 @@ function createPoster() { ...@@ -318,15 +318,15 @@ function createPoster() {
var posterTopObj = new Image(); var posterTopObj = new Image();
posterTopObj.src = '/Public/static/image2/poster' + level + '-1.png?version=1.0.0'; posterTopObj.src = '/Public/static/image2/poster' + level + '-1.png?version=1.0.0';
// var logoObj = new Image(); var logoObj = new Image();
// logoObj.src = '/Public/static/image2/logo.png?version=1.0.0'; logoObj.src = '/Public/static/image2/logo.png?version=1.0.0';
posterTopObj.onload = function () { posterTopObj.onload = function () {
txtDraw(posterCtx, username, '#464646', 215 * 2, 360 * 2, 45 * 2, 'bolder'); txtDraw(posterCtx, username, '#464646', 215 * 2, 360 * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿', '#464646', 215 * 2, 390 * 2, 20 * 2); txtDraw(posterCtx, '中信保诚人寿', '#464646', 215 * 2, 390 * 2, 20 * 2);
txtDraw(posterCtx, company + '', '#464646', 215 * 2, 413 * 2, 20 * 2); txtDraw(posterCtx, company + '', '#464646', 215 * 2, 413 * 2, 20 * 2);
setTimeout(function () { setTimeout(function () {
// posterCtx.drawImage(logoObj, 0, 43 * 2, 640 * 2, 61 * 2); posterCtx.drawImage(logoObj, 0 * 2, 0 * 2, 569 * 2, 204 * 2);
posterCtx.drawImage(posterTopObj, 0 * 2, 0 * 2, 569 * 2, 204 * 2); posterCtx.drawImage(posterTopObj, 180 * 2, 270 * 2, 206 * 2, 65 * 2);
var posterBottomObj = new Image(); var posterBottomObj = new Image();
posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0'; posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0';
posterBottomObj.onload = function () { posterBottomObj.onload = function () {
......
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