• 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: How to add randon transparent dots over CGPath or NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to add randon transparent dots over CGPath or NSBezierPath


  • Subject: Re: How to add randon transparent dots over CGPath or NSBezierPath
  • From: Seth Willits <email@hidden>
  • Date: Tue, 12 Feb 2013 09:03:20 -0800

On Feb 8, 2013, at 9:25 AM, Omkar Ramtekkar wrote:

> Wanted to know how can I add transparent dots or lines in CGPath or NSBezierPath. Here are more details about the problem. I've a solid line say width = 30(drawn using NSBezierPath or CGPath) , now I wanted to draw transparent dots over it or transparent lines(thickness=2 or something smaller than 30).

If by draw transparent dots, you mean something like "draw a path with a hole in it," then create a bezier path for the shape you want filled in, set it's winding to NSEvenOddWindingRule, then append to it a bezier path for the shape you want to be the "hole." Then take the resulting joined path and draw it.



> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which…

Don't send this to a mailing list.



--
Seth Willits

_______________________________________________

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: 
 >How to add randon transparent dots over CGPath or NSBezierPath (From: Omkar Ramtekkar <email@hidden>)

  • Prev by Date: Re: Uploading photos to iCloud programatically
  • Next by Date: Re: Uploading photos to iCloud programatically
  • Previous by thread: How to add randon transparent dots over CGPath or NSBezierPath
  • Next by thread: How to create a dynamic object - The question is mark than it please read full text
  • Index(es):
    • Date
    • Thread