• 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: NSBezierPath with Transparent color stroke
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath with Transparent color stroke


  • Subject: Re: NSBezierPath with Transparent color stroke
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 20 Oct 2014 16:25:58 +0000

On Oct 20, 2014, at 06:50 , Leonardo <email@hidden> wrote:
>
> I really need to fill the rect with flat red and stroke it with a 10
> points-width 50% transparent gray border.

What does that mean?

Are you trying to fill the entire rect with red, and wrap a 10-point stroke around it (i.e. completely outside the rect)? In that case, stroke it *first* with a 20-point line width, then fill it.

Or are you trying to put a 10-point stroke centered on the rect edge, and fill the interior with red without overlaying the stroke? In that case, inset the rect by 5 points, then do the above.
_______________________________________________

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: 
 >NSBezierPath with Transparent color stroke (From: Leonardo <email@hidden>)

  • Prev by Date: Custom NSTableRowView Question
  • Next by Date: Re: NSBezierPath with Transparent color stroke
  • Previous by thread: Re: NSBezierPath with Transparent color stroke
  • Next by thread: Re: NSBezierPath with Transparent color stroke
  • Index(es):
    • Date
    • Thread