dev_m
dev_m

Reputation: 806

Convert CGPathRef to CGMutablePathRef

How can i convert CGPathRef to CGMutablePathRef.

I think this are Structure not class so no API available to convert.

code:-

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

How to save intermediatePath variable to CGMutablePathRef.

Upvotes: 0

Views: 681

Answers (1)

Marc Khadpe
Marc Khadpe

Reputation: 2002

Use CGPathCreateMutableCopy().

CGMutablePathRef mutablePath = CGPathCreateMutableCopy(intermediatePath);

Upvotes: 4

Related Questions