开发者

Any debug facilities to dump control points of a Bézier-curve CGPath

开发者 https://www.devze.com 2023-03-15 05:33 出处:网络
I just can\'t imagine why the whole Bézier curve has this shape in my mind without seeing the control poin开发者_如何学Pythonts. Is there any facilities for this?There\'s a function called CGPathAppl

I just can't imagine why the whole Bézier curve has this shape in my mind without seeing the control poin开发者_如何学Pythonts. Is there any facilities for this?


There's a function called CGPathApply you can use. It takes a pointer to a function you implement, which must take a structure describing the anchor point as its second argument.

Each of those structures includes one or more points. For curve elements, the last one is the next anchor point (where the curve will end up), and the one or two points before that are the control points.

0

精彩评论

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