My question in brief:
I have many coordinates points(x,y) which needs to be drawn and saved as a picture in a folder. I need to write codes using C++.
Detailed Explanation:
Let's say i have n coordinate points(x ,y). I have two functions namely the "jump" and the "mark".
The function call would be in this sequence always:
jump(x,y)
mark(x,y)
jump(x,y)
mark(x,y)
..............this sequence happens till all coordinate points are considered finished.
1)The first Jump function will point to the current coordinate position/start position.
2)All mark functions would draw a continuous line from the previous jump function coordinates to the the coordinates it received.
3)Rest of the jump functions(except the first jump function) would draw a dotted line/dashed line from the previous mark coordinates till the coordinates it received. So this line would tell us from where did the jump function jumped to draw the next mark line(Refer attached Picture for better clarity)
How do i implement it? Any graphic libraries in C++ available to perform simple plotting and saving of an image like i wanted?
I read about few graphics libraries like SDL, OpenCV, OpenGL, PNGWriter. But not sure what and how to use.
I have shown a small example of what i wanted to do, which is attached as an image. Click here for the Image