Create Outlines around line.
Posted
by Eric Muller
on Stack Overflow
See other posts from Stack Overflow
or by Eric Muller
Published on 2010-04-20T00:02:19Z
Indexed on
2010/04/20
0:13 UTC
Read the original article
Hit count: 269
Hi SO community!
I am drawing graphs into a WinForms Picturebox. Now I am searching for a possibility to 'duplicate' a line (an array of points), so that the two resulting lines are positioned a fixed distance away from the original one. Like in this picture, I have the red line and want to get the black ones:
I thought about just moving the line a few pixels up/right/up-right, but that leads to strange overlapping lines.
Is there any other approach that does what I want? Any ideas would be greatly appreciated. Thanks!
© Stack Overflow or respective owner