public static Task <SKBitmap> LoadBitmapAsync(string path) { return(Task.Run(() => { SKImageInfo info; using (var stream = LoadStream(path)) { info = SKBitmap.DecodeBounds(stream); } using (var stream = LoadStream(path)) using (var managed = new SKManagedStream(stream)) { return SKBitmap.Decode(managed, new SKImageInfo(info.Width, info.Height, SKColorType.Rgba8888, SKAlphaType.Premul)); } })); }