【发布时间】:2014-10-06 14:44:12
【问题描述】:
我正在使用画布中的clip()。
我已经为clip()创建了一个区域,如下所示
this.svgRenderer.ctx.rect(positionX, positionY, Width, Height);
this.svgRenderer.ctx.clip();
在同一画布上绘制了几次之后,我尝试使用save() 和restore() 删除该区域的剪辑。
但我犯了错误,无法理解。
所以建议在不使用save()和restore()的情况下删除指定区域的剪辑的任何其他方式
【问题讨论】:
-
你能用你试图用 save() 和 restore() 做的代码来展示代码吗?
标签: javascript jquery html canvas