title: Bitmap to Jpeg using GPU (.NET)
body: <p>I have a list of (Bitmap) Image, I need to convert to Jpeg and save it into memory stream. This is what I use:</p>
  
  <pre><code>  IEnumerable&lt;Image&gt; source (...)
    MemoryStream ms = new MemoryStream();
  
    foreach (Image img in source)
    {
       img.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
    }
  
    ms.Close();
  </code></pre>
  
  <p>There is a way to reduce CPU load and replacing the Save method with some GPU optimized library? Please provide the sample code.</p>