public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _rawjtex = new RawJTEX(FileInfo.OpenRead()); _bitmaps = new List <BitmapInfo> { new BitmapInfo { Bitmap = _rawjtex.Image } }; } }
public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _rawjtex = new RawJTEX(FileInfo.OpenRead()); var _bmpList = new List <BitmapInfo> { new RawJTEXBitmapInfo { Bitmap = _rawjtex.Image, Format = _rawjtex.settings.Format.FormatName } }; _bitmaps = new List <BitmapInfo>(); _bitmaps.AddRange(_bmpList); } }