gpt4 book ai didi

ios - 将 CGPathRef 转换为 CGMutablePathRef

转载 作者:行者123 更新时间:2023-11-28 18:55:21 24 4
gpt4 key购买 nike

如何将 CGPathRef 转换为 CGMutablePathRef

我认为这是结构而不是类,因此没有可用于转换的 API。

代码:-

CGAffineTransform transform = CGAffineTransformMakeScale(2.0, 2.0);
CGPathRef intermediatePath = CGPathCreateCopyByTransformingPath(pt.custompath, &transform);

如何将 intermediatePath 变量保存到 CGMutablePathRef

最佳答案

使用 CGPathCreateMutableCopy()。

CGMutablePathRef mutablePath = CGPathCreateMutableCopy(intermediatePath);

关于ios - 将 CGPathRef 转换为 CGMutablePathRef,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34541783/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com