title: Rotate photo with SkiaSharp
body: <p>I'm trying to rotate photo with <code>SkiaSharp</code> to 90 degrees with following code:</p>
  
  <pre><code>    public SKBitmap Rotate()
      {
          var bitmap = SKBitmap.Decode("test.jpg");
          using (var surface = new SKCanvas(bitmap))
          {
              surface.RotateDegrees(90, bitmap.Width / 2, bitmap.Height / 2);
              surface.DrawBitmap(bitmap.Copy(), 0, 0);
          }
  
          return bitmap;
       }
  </code></pre>
  
  <p>But when I save bitmap to <code>JPEG</code> file, it has margins both on top and bottom of image.</p>
  
  <p>Original image: <a href="https://imgur.com/pGAuko8" rel="noreferrer">http://imgur.com/pGAuko8</a>.
  Rotated image: <a href="https://imgur.com/bYxpmI7" rel="noreferrer">http://imgur.com/bYxpmI7</a>.</p>
  
  <p>What am I doing wrong?</p>