Click here to Skip to main content
15,901,853 members
Home / Discussions / C#
   

C#

 
AnswerRe: finding printers on local machine Pin
stancrm2-Aug-06 23:12
stancrm2-Aug-06 23:12 
QuestionFinding path of an application Pin
wasife2-Aug-06 21:24
wasife2-Aug-06 21:24 
AnswerRe: Finding path of an application Pin
stancrm2-Aug-06 21:30
stancrm2-Aug-06 21:30 
QuestionPre-Requisites for my C# application Pin
wasife2-Aug-06 21:07
wasife2-Aug-06 21:07 
AnswerRe: Pre-Requisites for my C# application Pin
leppie2-Aug-06 21:16
leppie2-Aug-06 21:16 
Question(Very Urgent) WMP ActiveX Video Height And Width Pin
Souhail Jabbour2-Aug-06 20:54
Souhail Jabbour2-Aug-06 20:54 
QuestionFont size in MessageBox Pin
stancrm2-Aug-06 20:16
stancrm2-Aug-06 20:16 
AnswerRe: Font size in MessageBox Pin
Divyang Mithaiwala2-Aug-06 22:49
Divyang Mithaiwala2-Aug-06 22:49 
QuestionError Rolling Back Setup (Installer Class(deployment)) Pin
abhinish2-Aug-06 19:31
abhinish2-Aug-06 19:31 
QuestionActive Window [modified] Pin
Imtiaz Murtaza2-Aug-06 18:39
Imtiaz Murtaza2-Aug-06 18:39 
QuestionRe: Active Window Pin
mkamioner2-Aug-06 19:07
mkamioner2-Aug-06 19:07 
Questionretrieving a Bitmap from an HTMLImgClass Pin
Dave_Roach2-Aug-06 15:09
Dave_Roach2-Aug-06 15:09 
AnswerRe: retrieving a Bitmap from an HTMLImgClass Pin
Christian Graus2-Aug-06 15:18
protectorChristian Graus2-Aug-06 15:18 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
Dave_Roach2-Aug-06 15:41
Dave_Roach2-Aug-06 15:41 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
llpnet27-Jan-09 11:24
llpnet27-Jan-09 11:24 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
Gjuro Kladaric28-Oct-11 1:40
Gjuro Kladaric28-Oct-11 1:40 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
brain_freeze126-May-12 17:36
brain_freeze126-May-12 17:36 
Questionhow to convert sqlserver2000 db to access 2003 ? Pin
hdv2122-Aug-06 13:10
hdv2122-Aug-06 13:10 
AnswerRe: how to convert sqlserver2000 db to access 2003 ? Pin
Guffa2-Aug-06 13:27
Guffa2-Aug-06 13:27 
Questionclick a button on a website using webbrowser in c# 2005 Pin
Green Fuze2-Aug-06 12:02
Green Fuze2-Aug-06 12:02 
QuestionMake Polygon Follow a Line Pin
Sautin.net2-Aug-06 11:21
Sautin.net2-Aug-06 11:21 
AnswerRe: Make Polygon Follow a Line Pin
Judah Gabriel Himango2-Aug-06 11:43
sponsorJudah Gabriel Himango2-Aug-06 11:43 
GeneralRe: Make Polygon Follow a Line [modified] Pin
Sautin.net2-Aug-06 12:26
Sautin.net2-Aug-06 12:26 
GeneralRe: Make Polygon Follow a Line Pin
lmoelleb2-Aug-06 22:52
lmoelleb2-Aug-06 22:52 
For each line calculate a new line offset the desired distance outwards (I hope you know what direction outwards is, if not I guess it is possible to find out, but I can't remember how - Google it).

For each calculated line, calculate the intersection with each of the neighbouring calculated lines. These are the new points.

There is a catch though - some of the very short lines might no longer be needed. If you after the intersection calculation get a line where the direction between the points are 180 degrees offset from the original line, then throw away this calulated line. This of course means you must recalculate the intersection points of the neighbouring calculated lines as they now intersects each other instead of your line.

Sorry if it is not clear - I did my best in a short time. Oh, and I do in no way claim this algorithm is fastest or easiest way to do this, but it should work.

Alternatively (depending on your needs) you might get away with drawing the outline with a wide pen (twice as wide as you want the focus area to extend) and then filling the polygon with the same color. This will basically draw the sourounding polygon you requested, but if you can use this "drawing" for anything depends on how you use it further on.

AnswerRe: Make Polygon Follow a Line Pin
Christian Graus2-Aug-06 14:05
protectorChristian Graus2-Aug-06 14:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.