You want to make vector graphics from a raster image.
I don't think you will find an out of the box solution, even less a free class you could include in your project. Maybe a commercial one...
Vectorization is not an easy one :(. And it cannot be done fully automatically in general. You will need to apply several image processing steps to reduce the number of colors (actually a proper clustering). Than you will need edge detection and after that you can track the edges to closed filled paths. At the end you should optimize nodes, and smooth paths to curves if needed.
Some tools you might find of use:
http://www.aforgenet.com/framework/features/[
^]
http://code.google.com/p/tf-net/[
^]
But you will need more googling and even more theory to learn...