Drawing with pixel coordinates
-
Hello friends. I have comma seperated x and y coordinates. I need to draw these. Do you have advices? How can i do this? I've heard Visual C++ has a OnDraw() function. Or can I use OpenCV? Or something else? Thank you all.
-
Hello friends. I have comma seperated x and y coordinates. I need to draw these. Do you have advices? How can i do this? I've heard Visual C++ has a OnDraw() function. Or can I use OpenCV? Or something else? Thank you all.
You mean you need to have some kind of graph ? If that's the case, take a look at my sig, I developped a chart control that could be usefull for you. If not, there a section on code project with different charting controls.
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
Hello friends. I have comma seperated x and y coordinates. I need to draw these. Do you have advices? How can i do this? I've heard Visual C++ has a OnDraw() function. Or can I use OpenCV? Or something else? Thank you all.
-
Hello friends. I have comma seperated x and y coordinates. I need to draw these. Do you have advices? How can i do this? I've heard Visual C++ has a OnDraw() function. Or can I use OpenCV? Or something else? Thank you all.
As your question is very basic, I'm assuming your windows programming knowledge is minimal? Nothing wrong with that - we all started there. But if so, you are probably biting off a little bit too much. You are asking two non-trivial questions - how do I read in a file of comma separated values, and how do I plot them? Is there any reason why you can't use excel for plotting these values? If you really do have to write your own software, I'd follow the other suggestion and look at the charting controls here. Iain.
-
As your question is very basic, I'm assuming your windows programming knowledge is minimal? Nothing wrong with that - we all started there. But if so, you are probably biting off a little bit too much. You are asking two non-trivial questions - how do I read in a file of comma separated values, and how do I plot them? Is there any reason why you can't use excel for plotting these values? If you really do have to write your own software, I'd follow the other suggestion and look at the charting controls here. Iain.
Yes, I just started to GUI programing. We have an image processing project, so these values are not excel values. Dynamically changing values created with other functions. I am now thinking, I can create a BMP and show it in a picturebox. It'll be a easy way for me. (Because I'm experienced in image processing.) I'll be asking more questions about these. :) Thanks a lot.