Given the following Image object (it\'s in the DataTemplate of a ListView object):
I faced the same image quality problem in my WinRT application, and tried to use RenderOptions.BitmapScalingMode but it is not present (and System.Windows.Media namespace as well) in .NET for Windows Store. So I tried your first solution and fixed it so that works. You were one small step from success, only need to add
ras.Seek(0);
to allow reading the stream from the beginning.