¡@

Home 

2014/10/15 ¤U¤È 10:05:07

iphone Programming Glossary: clippath

UIBezierPath Subtract Path

http://stackoverflow.com/questions/8859285/uibezierpath-subtract-path

We'll start with the huge rectangle. And there is no rectangle more huge than the infinite rectangle UIBezierPath clipPath UIBezierPath bezierPathWithRect CGRectInfinite Now we make it into a compound path by adding smallMaskPath to it clipPath.. UIBezierPath bezierPathWithRect CGRectInfinite Now we make it into a compound path by adding smallMaskPath to it clipPath appendPath smallMaskPath Next we set the path to use the even odd rule clipPath.usesEvenOddFillRule YES Before we clip to.. path by adding smallMaskPath to it clipPath appendPath smallMaskPath Next we set the path to use the even odd rule clipPath.usesEvenOddFillRule YES Before we clip to this path we should save the graphics state so that we can undo the change to..