[英]canvas 0px line drawing (html5)
(sorry for my english) So my question is, how can i make a 0px line? (对不起我的英语)所以我的问题是,我如何制作0px线? If i call this the line stay 1px width:/
如果我称这个线路保持1px宽度:/
imgCtx.beginPath();
imgCtx.lineWidth = 0;
imgCtx.fill();
imgCtx.stroke();
I need just the filled section. 我只需要填充部分。
If you only need only the filled section, then don't ask about how to get a 0px outline, ask how to only get the filled section. 如果您只需要填充部分,那么不要询问如何获得0px轮廓,询问如何只获得填充部分。
var ctx = canvas.getContext("2d");
ctx.strokeStyle = "none";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.