how to collect all the points in NSBezierpath to draw
I have store all the points in the array and pass to the NSBeizerPath so that it can draw through that path.The code i have implemented is as follows:
- (void)drawPath:(NSPoint)inStartPoint toLastPoint:(NSPoint)inEndPoint
{
NSBezierPath* path = [NSBezierPath bezierPath];
NSLog(@"Drawing path....");
[path moveToPoint:inStartPoint];
[path lineToPoint:inEndPoint];
[mColor set];
[p开发者_如何转开发ath fill];
[path stroke];
}
This is drawing to only the startpoint and end point now how to draw where the cursor moves.
精彩评论