Click here to Skip to main content
15,907,497 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi, everyone! Now i get a problem:

In the "picturebox", I have four known coordinates of points, then i used "e.Graphics.DrawClosedCurve" to draw a smooth closed curve.

So, How can I get all coordinates of the curve? In my opinion, Coordinates of those points should be somewhere, right? Just do me a favor, Thanks!
Posted
Comments
Jimmanuel 17-Jun-10 10:21am    
I think you need to clarify what you mean by "all coordinates of the curve". On any given line there are an infinite number of points so it would be futile to try to create a list of all of them. If you have a specific subset that you want then you could use some trigonometry to generate them but I wouldn't expect .Net to know what specific subset you're looking for.
liwenjiede 18-Jun-10 4:23am    
Hi, Thanks for your reply!
Now I get the point. I think I could get the coordinates from Bitmap by checking out it's pixel.
Thanks!

1 solution

Find the answer here.

For VS 2008 you can use this:
ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/dv_fxmclignrl/html/a4a41e80-4461-4b47-b6bd-2c5e68881994.htm

I think first reference is good for both. The help is quite clear, isn't it?
 
Share this answer
 
v4
Comments
Sergey Alexandrovich Kryukov 10-Dec-10 14:42pm    
Hm, very nice vote... Whoever voted, did you look at those references. The thing is, whatever anyone writes here, it would not be any better them those references. In a way, my answer is nearly optimal. So, what's wrong? Or such help is now welcome? Ok, I could give up helping anyone, but... who would be a looser? Can you think about it a bit?
Thank you for collaboration.
Espen Harlinn 26-Feb-11 10:51am    
A 5 - comment is a bit harsh - but then we all get frustrated by just being ignored :)
Sergey Alexandrovich Kryukov 26-Feb-11 21:47pm    
I felt guilty for a while for harsh comment but later realized that I'm talking to the voter who had chosen to remain anonymous. Why should I worry about hurting of personal feeling of anyone who is not a person, technically speaking?
Thank you for your vote, Espen.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900