diff --git a/ArcFormats/ImageERI.cs b/ArcFormats/ImageERI.cs index c8398b12..98461f0a 100644 --- a/ArcFormats/ImageERI.cs +++ b/ArcFormats/ImageERI.cs @@ -204,11 +204,7 @@ namespace GameRes.Formats.Entis } var reader = new EriReader (stream, meta, palette); reader.DecodeImage(); - var bitmap = BitmapSource.Create ((int)info.Width, (int)info.Height, - ImageData.DefaultDpiX, ImageData.DefaultDpiY, - reader.Format, reader.Palette, reader.Data, reader.Stride); - bitmap.Freeze(); - return new ImageData (bitmap, info); + return ImageData.Create (info, reader.Format, reader.Palette, reader.Data, reader.Stride); } }