iPhone Quartz 2D:CGContextSetLineJoin 相当于 CGMutablePathRef?

发布于 2024-08-22 18:41:26 字数 202 浏览 2 评论 0原文

CGMutablePathRef 与 CGContextSetLineJoin 等效的是什么? CGContextSetLineJoin 直接在图形上下文上工作,因此需要 CGContextRef 参数,但由于我使用 CGMutablePathRef,因此我没有该参数。我在 CGPath.h 中找不到任何执行 CGContextSetLineJoin 工作的内容。

谢谢。

What is the CGMutablePathRef equivalent of CGContextSetLineJoin? CGContextSetLineJoin works directly on the graphics context, 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不必了 2024-08-29 18:41:26

使用CGMutablePathRef,您只需定义一个路径。直到绘制路径后,您才能使用 CGContextSetLineJoin 等函数。比照。 Apple 文档

您必须调用绘画函数来填充或描边路径,因为创建路径不会绘制路径。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文