[Drawkit] NSBezierPath points?
Graham Cox
graham.cox at bigpond.com
Sat Feb 13 17:46:30 PST 2010
On 14/02/2010, at 12:35 PM, Paul Reilly wrote:
> My problem is I have a shape, which I want to define an NSBezierPath for.
> I need a tool I can freehand trace the path of the shape from the image, and then
> extract thee path as a set of points to use for NSBezierPathCurveToPoint methods.
> Do you know if this is possible with DrawKit ?
Hi Paul,
Yep - drawing freehand shapes is supported and should work out of the box. You just need to set the 'freehand' tool. If you have a default set-up DKDrawingView, you can do that as follows:
[theView setDrawingToolWithName:@"Freehand"];
--Graham
More information about the Drawkit
mailing list