【问题标题】:Convert CGPathRef to CGMutablePathRef将 CGPathRef 转换为 CGmutablePathRef
【发布时间】:2016-04-05 03:38:21
【问题描述】:

如何将CGPathRef 转换为CGMutablePathRef

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

代码:-

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

如何将中间路径变量保存到CGMutablePathRef

【问题讨论】:

    标签: ios objective-c cocoa-touch core-graphics


    【解决方案1】:

    使用 CGPathCreateMutableCopy()。

    CGMutablePathRef mutablePath = CGPathCreateMutableCopy(intermediatePath);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多