Click here to Skip to main content
15,894,825 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Make Polygon Follow a Line Pin
Sautin.net3-Aug-06 5:26
Sautin.net3-Aug-06 5:26 
QuestionDataGridView removing rows takes forever Pin
shultas2-Aug-06 10:18
shultas2-Aug-06 10:18 
QuestionVB6 InputBox in C# Pin
Kasic Slobodan2-Aug-06 10:17
Kasic Slobodan2-Aug-06 10:17 
AnswerRe: VB6 InputBox in C# Pin
Ennis Ray Lynch, Jr.2-Aug-06 10:38
Ennis Ray Lynch, Jr.2-Aug-06 10:38 
GeneralRe: VB6 InputBox in C# Pin
Kasic Slobodan2-Aug-06 11:47
Kasic Slobodan2-Aug-06 11:47 
QuestionBest way to debug Pin
Tom Wright2-Aug-06 9:58
Tom Wright2-Aug-06 9:58 
JokeRe: Best way to debug Pin
Paul Voicu2-Aug-06 10:06
Paul Voicu2-Aug-06 10:06 
GeneralRe: Best way to debug Pin
Tom Wright2-Aug-06 11:36
Tom Wright2-Aug-06 11:36 
GeneralRe: Best way to debug Pin
Paul Voicu2-Aug-06 11:40
Paul Voicu2-Aug-06 11:40 
AnswerPen and Paper Pin
Ennis Ray Lynch, Jr.2-Aug-06 10:39
Ennis Ray Lynch, Jr.2-Aug-06 10:39 
QuestionHow do I print the contents of a pictureBox Pin
michmela442-Aug-06 9:07
michmela442-Aug-06 9:07 
AnswerUse a printer Pin
Ennis Ray Lynch, Jr.2-Aug-06 9:34
Ennis Ray Lynch, Jr.2-Aug-06 9:34 
AnswerRe: How do I print the contents of a pictureBox Pin
stancrm2-Aug-06 20:02
stancrm2-Aug-06 20:02 
QuestionA better way than multiple case in switch statement Pin
allenmpcx2-Aug-06 9:00
allenmpcx2-Aug-06 9:00 
AnswerRe: A better way than multiple case in switch statement Pin
vineas2-Aug-06 9:12
vineas2-Aug-06 9:12 
GeneralRe: A better way than multiple case in switch statement Pin
allenmpcx2-Aug-06 9:29
allenmpcx2-Aug-06 9:29 

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.