Re: NSBezierPath with Transparent color stroke
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