• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting CGPath from CGImageRef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Converting CGPath from CGImageRef (From: Development <email@hidden>)

  • Prev by Date: Re: Dual screen problems
  • Next by Date: Core Data and NSNumber values
  • Previous by thread: Converting CGPath from CGImageRef
  • Next by thread: Stop Power to USB port
  • Index(es):
    • Date
    • Thread