title: WMF / EMF File Format conversion C#
body: <p>In my program, I have a requirement to "playback" or "parse" windows metafiles (WMF and EMF). I have dug through MSDN and Google, and the closest I have come is the Graphics. EnumerateMetafile method. I can get it to work, in that my EnumerateMetafileProc callback is called, and I can then call PlayRecord. What is missing, is how to get usefull data out of that callback.</p>
  
  <p>Example I looked at: <a href="http://msdn.microsoft.com/en-us/library/ms142060.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/ms142060.aspx</a></p>
  
  <p>The callback has a recordType parameter, which is an ENUM. Well this looks useful, except their seems to be no way to cast the data into any useful type.</p>
  
  <p>My goal is to play back the creation of the WMF/EMF, so that I can make function calls to a specialized graphics class which has methods like (DrawLine, DrawPoint, DrawArc). In a sense, I am re-creating the WMF/EMF drawing in a completely different format (Converting).</p>
  
  <p>Any help in this is extremely appreciated.</p>