Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个电话CGContextSetLineWidth,但我没有看到相应的CGContextGetLineWidth,甚至没有CGContextLineWidth。如何获取上下文中设置的当前宽度?我需要知道这对于我在图书馆中的绘图例程是什么。
CGContextSetLineWidth
CGContextGetLineWidth
CGContextLineWidth
在新创建的上下文中,线宽始终为 1。您可以在库中使用变量更改线宽时手动跟踪线宽吗?