title: Bitmap smoothing in UWP
body: <p>I am trying to figure out how to resize an image without losing quality in UWP. I know in WPF there's an option to smooth an image using this: <code>RenderOptions.BitmapScalingMode="HighQuality"</code> but I can't seem to find an equivalent in UWP.</p>
  
  <p>Here's what the image looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/L5MMC.png" alt=""></p>
  
  <p>And what it's supposed to look like:</p>
  
  <p><img src="https://i.stack.imgur.com/YNGiY.jpg" alt=""></p>
  
  <p>If you look closely, you can see that the picture is badly pixelated. How can I achieve this in UWP?</p>
  
  <p>I'm resizing it by XAML (circle crop):</p>
  
  <pre><code>&lt;Ellipse x:Name="personImageContainer" Width="50" Height="50"&gt;
      &lt;Ellipse.Fill&gt;
          &lt;ImageBrush x:Name="personImage" ImageSource="/Assets/BlankContact.png" Stretch="Uniform" /&gt;
      &lt;/Ellipse.Fill&gt;
  &lt;/Ellipse&gt;
  </code></pre>
  
  <p>and just setting the image like this:</p>
  
  <pre><code>personImage.ImageSource = new BitmapImage(new Uri("http://lorempixel.com/500/500/"));
  </code></pre>
  
  <p>I can't seem to find any other settings in both <code>ImageBrush</code> and <code>BitmapImage</code> that does it.</p>