Commit 02390c5b by doszhang

dos

parent 77bd86e7
......@@ -120,7 +120,7 @@ $(document).ready(function () {
if (custom) {
top = 50;
ctx2.fillStyle = '#000000';
ctx2.font = 'bolder 70px fzlt';
ctx2.font = 'bolder 1070px fzlt';
} else if (firstSwiper.realIndex === 0) {
top = 490;
ctx2.fillStyle = '#000000';
......@@ -248,18 +248,18 @@ var init = function () {
var drawImage = function () {
if (uploadedImg) {
ctx.save();
// ctx.clearRect(0, 0, canvas.width, canvas.height);
// ctx.fillStyle = "#ffffff";
// ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "#ffffff";
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.translate(canvas.width / 2, canvas.height / 2);
ctx.translate(imgInfo.x, imgInfo.y);
ctx.rotate(Math.PI / 180 * imgInfo.rotation);
ctx.scale(imgInfo.scale, imgInfo.scale);
// ctx.drawImage(uploadedImg, -uploadedImg.width / 2, -uploadedImg.height / 2);
ctx.drawImage(uploadedImg, -uploadedImg.width / 2, -uploadedImg.height / 2);
ctx.restore();
}
var img = loadedImages[window.base_resource_url + '/image2/cover/3.png'];
// ctx.drawImage(img, 0, 0);
ctx.drawImage(img, 0, 0);
}
var showPage1 = function () {
custom = false;
......
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