![](/img/trans.png)
[英]How do I set the line width of a UIBezierPath when drawing to a CGContext?
[英]In iOS, how do you get the current line width of a CGContext?
有一个调用CGContextSetLineWidth
,但我没有看到相应的CGContextGetLineWidth
甚至CGContextLineWidth
。 如何在上下文中设置当前宽度? 我需要知道这对我在库中的绘制例程来说是什么。
在新创建的上下文中,线宽始终为1.您是否可以通过使用变量在库中更改时手动跟踪线宽?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.