If you want to create a new printer (real or virtual) then you will need to install a driver for it, and that will need to be written according to the WDK. Go to the link I gave you and study how to do it.
The same way you would do it on paper. Create a List of all the points in the graph and then draw a line from the first to the last, passing through each intermediate point. You can do this by using the Graphics Class[^], or search Google for some other utility classes that may help you.