You can use Vampyre Imaging.
http://imaginglib.sourceforge.net/