[英]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.