iphone - How can store all points in the CGContextAddArc (CGContextRef) to NSMUtableArray -
How can I make NSMutableArray.CGContextRef all the pixel points in CGContextAddArc? NSMutable Array
Fixed inline float radians (double degrees) {return degree * pi / 180; } - (zero) direct: (CGRact) shortcut {CGContextRef context = UIGraphicsGetCurrentContext (); CGRCT parentViewbound = self. Bound; CGFLOTX = CGRTGetWith (Parent Weiboound) / 2; CGFloat y = CGRectGetHeight (parent weighbounds) / 2; UIColor * rbg = [UIColor redColor]; CGContextSetFillColor (Context, CGColorGetComponents (CGBC) CGContextMoveToPoint CGContextAddArc (context, X, Y, 100, (Reference); // Here I want to store all the points included in the arc for NSMutableArray NSMutableArray * pointsArray = ???} IMAGE
Store or when you want to add points to your CGPER in NSValue, NSValue value withCGP: CGPointMake (your_X, your_y)]; [numeric add object: point];
Now when you take the time, How to read CP points in ARA from ARO,
NSValue * getPoint = [pointsArray objectAtIndex: i]; CGPoint thePoint = [getPoint CGPointValue]; Your answer will be.
Comments
Post a Comment