【发布时间】:2014-06-25 11:39:15
【问题描述】:
试图在背景图像上绘制弧线
我的小提琴http://jsfiddle.net/Qeqg6/
var canvas = this.__canvas = new fabric.Canvas('c');
var ctx=canvas.getContext('2d');
ctx.beginPath();
ctx.arc(200,350,50,0*Math.PI,1.5*Math.PI);
ctx.stroke();
canvas.setBackgroundImage('http://placehold.it/350x150', canvas.renderAll.bind(canvas));
有一个 stackoverflow 问题,但对我来说没有帮助。 HTML5 Canvas - my lines/arcs are not appearing on top of an image
【问题讨论】: