开发者

iPhone Quartz 2D: CGContextSetLineJoin equivalent for CGMutablePathRef?

开发者 https://www.devze.com 2022-12-21 21:50 出处:网络
What is the CGMutablePathRef equivalent of CGContextSetLineJoin? CGContextSetLineJoin works directly on the graphics c开发者_JAVA技巧ontext, so requires a CGContextRef parameter, which I do not have s

What is the CGMutablePathRef equivalent of CGContextSetLineJoin? CGContextSetLineJoin works directly on the graphics c开发者_JAVA技巧ontext, so requires a CGContextRef parameter, which I do not have since I'm working with CGMutablePathRef. I can't find anything in CGPath.h that does CGContextSetLineJoin's job.

Thank you.


Using CGMutablePathRef, you are just defining a path. It's not until you paint the path that you can use functions like CGContextSetLineJoin. Cf. Apple's documentation:

You must call a painting function to fill or stroke the path because creating a path does not draw the path.

0

精彩评论

暂无评论...
验证码 换一张
取 消