¡@

Home 

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

iphone Programming Glossary: cgpathaddellipseinrect

Drawing incrementally in a UIView (iPhone)

http://stackoverflow.com/questions/1798414/drawing-incrementally-in-a-uiview-iphone

context kCGBlendModeColorBurn set blending mode if myPoints count 0 Drop drop myPoints objectAtIndex myPoints count 1 CGPathAddEllipseInRect dotsPath NULL CGRectMake drop.point.x drop.dropSize 2 drop.point.y drop.dropSize 2 drop.dropSize drop.dropSize CGContextAddPath..

Masking a CALayer - iPhone

http://stackoverflow.com/questions/2267676/masking-a-calayer-iphone

Here's what I've got so far CAShapeLayer maskLayer CAShapeLayer alloc init CGMutablePathRef path CGPathCreateMutable CGPathAddEllipseInRect path nil CGRectMake 0 0 13 13 CGPathAddEllipseInRect path nil CGRectMake 30 0 13 13 CGPathAddRect path nil CGRectMake 6.. CAShapeLayer alloc init CGMutablePathRef path CGPathCreateMutable CGPathAddEllipseInRect path nil CGRectMake 0 0 13 13 CGPathAddEllipseInRect path nil CGRectMake 30 0 13 13 CGPathAddRect path nil CGRectMake 6 0 32 13 maskLayer setPath path maskLayer setFillColor..

iPhone clip image with path

http://stackoverflow.com/questions/2570653/iphone-clip-image-with-path

CGMutablePathRef path CGPathCreateMutable or for e.g. CGPathAddRect path NULL CGRectInset self bounds 10 20 CGPathAddEllipseInRect path NULL self bounds CGContextAddPath context path CGContextClip context CGPathRelease path UIImage imageNamed @ GC.png..

iPhone - How to make a circle path for a CAKeyframeAnimation?

http://stackoverflow.com/questions/3804453/iphone-how-to-make-a-circle-path-for-a-cakeyframeanimation

CGRect pathRect ... some rect you define. A circle has equal width height radius is half the values you specify here CGPathAddEllipseInRect circularPath NULL pathRect spinAnimation.path circularPath CGPathRelease circularPath You will notice the keypath of the..

Core Text: Render to an Odd Shape

http://stackoverflow.com/questions/3813318/core-text-render-to-an-odd-shape

10.0 10.0 w h I draw using only one of the following lines CGPathAddRect path NULL bounds THIS LINE WILL WORK CGPathAddEllipseInRect path NULL bounds THIS LINE WILL CRASH IT Initialize an attributed string. CFStringRef string CFSTR Lorem ipsum dolor sit..