WriteableBitmap to BitmapFrame convertation
<p>Is there some painless convertation?
I have googled this sample:</p>

<pre><code>using (MemoryStream ms = new MemoryStream())
{//WriteableBitmap wb defined before
    wb.SaveJpeg(ms, (int)image1.Width, (int)image1.Height, 0, 100);
    BitmapImage bmp = new BitmapImage();
    bmp.SetSource(ms);
} 
</code></pre>

<p>But wb HAS NO SaveJpeg method! (using System.Windows.Media.Imaging; using System.Windows.Media;)
and bmp HAS NO SetSource =(</p>
