private async void LoadButtonClick(object sender, RoutedEventArgs e) { var data = await File.ReadAllBytesAsync("Bretagne1_0.j2k"); using (var reader = new IO.Reader(data)) { var result = reader.ReadHeader(); if (!result) { return; } var raw = reader.ReadRawBitmap(); this._Image.Source = await ToBitmapSource(raw); } }