Re: Stroking on the inside with NSBezierPath

2009-01-30 Thread Matthew Johnson


The default stroke seems to be one that assumes the path you make is  
the center of the stroke. How can I make the stroke be on one of the  
*side* of the path? Depending on how you look at it it could be to  
the right, left, outside or inside. Any way to modify that?

Thanks,U



Just set the clip path to your path before stroking it.

Matthew
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Stroking on the inside with NSBezierPath

2009-01-30 Thread glenn andreas


On Jan 30, 2009, at 2:19 PM, Ulai Beekam wrote:



The default stroke seems to be one that assumes the path you make is  
the center of the stroke. How can I make the stroke be on one of the  
*side* of the path? Depending on how you look at it it could be to  
the right, left, outside or inside. Any way to modify that?

Thanks,U



Adjust the clipping path (to either include or exclude the shape) and  
stroke the line with twice the width.




Glenn Andreas  gandr...@gandreas.com
 http://www.gandreas.com/ wicked fun!
quadrium | flame : flame fractals  strange attractors : build,  
mutate, evolve, animate




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


RE: Stroking on the inside with NSBezierPath

2009-01-30 Thread Ulai Beekam

The clipping path was indeed what I was looking for to solve this. Thank you 
sirs! :)



 The default stroke seems to be one that assumes the path you make is
 the center of the stroke. How can I make the stroke be on one of the
 *side* of the path? Depending on how you look at it it could be to
 the right, left, outside or inside. Any way to modify that?
 Thanks,U

 Just set the clip path to your path before stroking it.

 Matthew

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com