Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: datareader in asp.net using c# Pin
Mazdak28-May-04 20:05
Mazdak28-May-04 20:05 
GeneralRe: datareader in asp.net using c# Pin
Dave Kreskowiak29-May-04 14:35
mveDave Kreskowiak29-May-04 14:35 
QuestionHow to decide if a Point is on a curve Pin
TaoLi28-May-04 16:38
TaoLi28-May-04 16:38 
AnswerRe: How to decide if a Point is on a curve Pin
Nathan Blomquist28-May-04 17:22
Nathan Blomquist28-May-04 17:22 
GeneralRe: How to decide if a Point is on a curve Pin
TaoLi29-May-04 16:13
TaoLi29-May-04 16:13 
GeneralRe: How to decide if a Point is on a curve Pin
TaoLi29-May-04 17:39
TaoLi29-May-04 17:39 
GeneralRe: How to decide if a Point is on a curve Pin
Nathan Blomquist30-May-04 4:11
Nathan Blomquist30-May-04 4:11 
GeneralRe: How to decide if a Point is on a curve Pin
adelboy11-May-09 8:27
adelboy11-May-09 8:27 
I found the same problem as above and your description of the problem helped to give me the answer. If the path is closed already, the path.IsVisible(point) should work.

To keep the line as pure looking as possible using pixels, just reverse the points in the array and add them to the original set. Then add them to a closed curve in the path.

<br />
         GraphicsPath _curvePath = new GraphicsPath();<br />
         List<PointF> closedCurvePoints = new List<PointF>(_curvePoints);<br />
         closedCurvePoints.Reverse();<br />
         closedCurvePoints.AddRange(_curvePoints);<br />
         _curvePath.AddClosedCurve(closedCurvePoints.ToArray());<br />


This worked well for me - even for curves that backed in on themselves. Hopefully it will be helpful to someone else if you have no need for this info anymore
QuestionMultiple Sockets On A Single Port? Pin
XanderSon28-May-04 15:05
XanderSon28-May-04 15:05 
AnswerRe: Multiple Sockets On A Single Port? Pin
valikac28-May-04 19:59
valikac28-May-04 19:59 
GeneralMulti-Form and Multi Thread Question Pin
Jeff Monheiser28-May-04 13:46
Jeff Monheiser28-May-04 13:46 
GeneralSystem.Windows.Forms.TreeView Question Pin
bneacetp28-May-04 12:53
bneacetp28-May-04 12:53 
GeneralRe: System.Windows.Forms.TreeView Question Pin
Aaron Eldreth28-May-04 15:49
Aaron Eldreth28-May-04 15:49 
GeneralRe: System.Windows.Forms.TreeView Question Pin
bneacetp28-May-04 20:33
bneacetp28-May-04 20:33 
GeneralRe: System.Windows.Forms.TreeView Question Pin
Aaron Eldreth29-May-04 2:49
Aaron Eldreth29-May-04 2:49 
GeneralRe: System.Windows.Forms.TreeView Question Pin
bneacetp29-May-04 15:52
bneacetp29-May-04 15:52 
GeneralTwo Important and Urgent questions Pin
Den2Fly28-May-04 12:15
Den2Fly28-May-04 12:15 
GeneralRe: Two Important and Urgent questions Pin
Colin Angus Mackay28-May-04 14:05
Colin Angus Mackay28-May-04 14:05 
GeneralRe: Two Important and Urgent questions Pin
Den2Fly29-May-04 7:26
Den2Fly29-May-04 7:26 
GeneralRe: Two Important and Urgent questions Pin
Dave Kreskowiak29-May-04 14:27
mveDave Kreskowiak29-May-04 14:27 
GeneralRe: Two Important and Urgent questions Pin
Dave Kreskowiak29-May-04 14:30
mveDave Kreskowiak29-May-04 14:30 
GeneralWorking with System.Windows.Forms.RichTextBox Pin
bneacetp28-May-04 10:32
bneacetp28-May-04 10:32 
GeneralRe: Working with System.Windows.Forms.RichTextBox Pin
Dave Kreskowiak28-May-04 10:46
mveDave Kreskowiak28-May-04 10:46 
GeneralRe: Working with System.Windows.Forms.RichTextBox Pin
bneacetp28-May-04 11:03
bneacetp28-May-04 11:03 
Generalimplicit operators Pin
wickerman.2628-May-04 9:06
wickerman.2628-May-04 9:06 

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.