Snapping stroke's border.

Post questions on how to use or achieve an effect in Inkscape.
User avatar
fenixproductions
Posts: 9
Joined: Mon Jan 26, 2009 9:42 am
Location: London
Contact:

Snapping stroke's border.

Postby fenixproductions » Thu Apr 09, 2009 11:41 am

Hi all.

Is it possible to set Inkscape to snap object with stroke but with stroke threated as border?

I am sorry if this question is not clear. I hope attached image will help.

Top rectangle shows how normal object is snapping. It's borders prone to stick to guideline. Bottom one illustrates snapping with stroke (4px) and as you can see, whole object comes out 2px left of guide. It's not desirable.

The way I'd like to have it is to get bottom rectangle to stick like upper one, so snapping border shoul be the dark-grey (not red). If it's still unclear then try to imagine bottom object shifted 2px right ;)
Attachments
snap.png
snap.png (1.45 KiB) Viewed 1881 times

User avatar
EarlyBlake
Posts: 302
Joined: Tue Jun 03, 2008 5:42 pm

Re: Snapping stroke's border.

Postby EarlyBlake » Thu Apr 09, 2009 11:44 am

You could try snapping the bounding box corns.

User avatar
fenixproductions
Posts: 9
Joined: Mon Jan 26, 2009 9:42 am
Location: London
Contact:

Re: Snapping stroke's border.

Postby fenixproductions » Thu Apr 09, 2009 11:52 am

EarlyBlake wrote:You could try snapping the bounding box corns.

Thanks, that worked!

BTW Are there any plans to extend "Object to guides" option?

Three possible values come to my mind, of course:
- current (described) mode - guides created according to the middle of stroke,
- internal - according to red area,
- external (bounding box corns?) - according to stroke's borders.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Snapping stroke's border.

Postby prkos » Thu Apr 09, 2009 6:36 pm

You can use the Stroke to Path option and make guides from that object, this way you get the inner and outer border guides.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

User avatar
fenixproductions
Posts: 9
Joined: Mon Jan 26, 2009 9:42 am
Location: London
Contact:

Re: Snapping stroke's border.

Postby fenixproductions » Sat Apr 11, 2009 4:04 am

prkos wrote:You can use the Stroke to Path option and make guides from that object, this way you get the inner and outer border guides.


Thank you for your answer but I've already used that method. Sometimes I was even creating two rectangles: one for acting as inner object and second for border.

I thought it could be simplified.


Return to “Help with using Inkscape”