title: Convert an image into WMF with .NET?
body: <p>There are plenty of examples of converting a wmf into a bitmap like:
  <a href="https://stackoverflow.com/questions/785837/reliable-wmf-wmf-to-pixel-based-image-conversion">Reliable .wmf/wmf to Pixel based image conversion</a></p>
  
  <p>But I need the reverse operation. I do not look for a vectorizer. I just want to embed a picture inside a wmf file without having to bother about the bits and bytes of the wmf format. I need a solution for .NET preferably in C#.</p>
  
  <p>I first thought this would do the job:</p>
  
  <pre><code>using (Image img = Image.FromFile (path)) {
      img.Save (myStream, System.Drawing.Imaging.ImageFormat.Wmf);
  }
  </code></pre>
  
  <p>But this complains at runtime that the encoder is null. Where/How can I build such an encoder? I do not need a complicated one, just one that wraps an image into a wmf. Are there some requirements on the supported formats in WMF? I suppose png and bmp are supported but is gif also supported?</p>