NSBezierPath with Transparent color stroke
NSBezierPath with Transparent color stroke
- Subject: NSBezierPath with Transparent color stroke
- From: Leonardo <email@hidden>
- Date: Mon, 20 Oct 2014 15:50:29 +0200
- Thread-topic: NSBezierPath with Transparent color stroke
I fill my bezierPath (a simple rect) with a red color.
Then I stroke it with a 10 point border with a 50% transparent gray color.
Since the border of the path gets drawn 50% inside the path and 50% outside
the path, I end up with an external 5 points 50% gray border and an internal
5 points red-gray border. That's really bad.
I really need to fill the rect with flat red and stroke it with a 10
points-width 50% transparent gray border.
If I draw 2 paths, the one to be filled with red and the one to be stroked
with gray, I end up with a small white gap between the 2 paths.
How to fix this trouble?
Regards
-- Leonardo
_______________________________________________
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