How to load EPS files and draw them using WinForms

Frank Krueger picture Frank Krueger · Oct 7, 2009 · Viewed 8.1k times · Source

Is it possible to load and display EPS file using plain WinForms GDI+? If not, is there a free library to help out?

I seem to remember that Windows GDI supported EPS files, but after Googling around a bit, I am starting to doubt that memory.

All I want to do is load the file and draw it using a Graphics context.

I am aware that I can just use any program to convert the file to PNG or something and render it that way, but because I am trying to render at multiple resolutions, I would prefer to keep the vector data in the EPS file.

Thanks!

Answer

Mark Redman picture Mark Redman · Oct 7, 2009

You can use GhostScript to produce images from an EPS. Once you have an image you can then display that within your application.