简体   繁体   English

在iOS中,如何获得CGContext的当前行宽?

[英]In iOS, how do you get the current line width of a CGContext?

There's a call CGContextSetLineWidth , but I don't see a corresponding CGContextGetLineWidth or even a CGContextLineWidth . 有一个调用CGContextSetLineWidth ,但我没有看到相应的CGContextGetLineWidth甚至CGContextLineWidth How can I get the current width set in the context? 如何在上下文中设置当前宽度? I need to know what this is for my draw routines in a library. 我需要知道这对我在库中的绘制例程来说是什么。

在新创建的上下文中,线宽始终为1.您是否可以通过使用变量在库中更改时手动跟踪线宽?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM