Commit 56bafd66 by doszhang

dos

parent d0689ea9
......@@ -159,7 +159,7 @@ function createPoster() {
headimg.onload = function () {
// posterCtx.drawImage(headimg, designPxToRealPx(canvasArr[resultType - 1][5]), designPxToRealPx(canvasArr[resultType - 1][4]), designPxToRealPx(52), designPxToRealPx(52));
drawRoundedRect(posterCtx, designPxToRealPx(canvasArr[resultType - 1][5]), designPxToRealPx(canvasArr[resultType - 1][4]), designPxToRealPx(52), designPxToRealPx(52), designPxToRealPx(5),
'#0f5188');
true);
// drawRoundRectImg(posterCtx, designPxToRealPx(5), designPxToRealPx(canvasArr[resultType - 1][5]), designPxToRealPx(canvasArr[resultType - 1][4]), designPxToRealPx(52), designPxToRealPx(52), headimg);
}
}
......@@ -167,6 +167,7 @@ function createPoster() {
function drawRoundedRect(ctx, x, y, width, height, r, fill, stroke) {
ctx.save();
ctx.fillStyle = "#0f5188";
ctx.beginPath(); // draw top and top right corner
ctx.moveTo(x + r, y);
ctx.arcTo(x + width, y, x + width, y + r, r); // draw right side and bottom right corner
......
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