Re: Converting CGPath from CGImageRef
Re: Converting CGPath from CGImageRef
- Subject: Re: Converting CGPath from CGImageRef
- From: Charles Steinman <email@hidden>
- Date: Thu, 6 Nov 2008 21:18:20 -0800 (PST)
--- On Thu, 11/6/08, Development <email@hidden> wrote:
> I have been using masks and images as way to handle
> selection areas in a drawing program. It works fine for
> fills and other operations, but the dotted outline of a
> CGPath looks better as a selection.
Andy Finnell wrote a couple of very good articles on this a while back.
http://www.losingfight.com/blog/2007/08/28/how-to-implement-a-magic-wand-tool/
http://www.losingfight.com/blog/2007/08/29/an-alternate-way-to-implement-marching-ants/
The latter uses CoreImage directly on your mask to draw the dotted line, so it's probably a bit quicker than tracing the bitmap.
Cheers,
Chuck
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden