title: How to save a WPF BitmapSource image to a file?
body: <p>In WPF, the <a href="http://msdn.microsoft.com/en-us/library/system.windows.clipboard.getimage" rel="noreferrer"><code>System.Windows.Clipboard.getImage()</code></a> function returns a <a href="http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapsource" rel="noreferrer"><code>BitmapSource</code></a> object.  As a newbie in WPF coming from a WinForms background, its not clear to me how to save this image to a file.  What are the steps I must take?</p>