简体   繁体   中英

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 . 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.您是否可以通过使用变量在库中更改时手动跟踪线宽?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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