public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _picaRg = new PICARG(FileInfo.OpenRead()); _bitmaps = _picaRg.bmps.Select(o => new BitmapInfo { Bitmap = o }).ToList(); } }
public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _picaRg = new PICARG(FileInfo.OpenRead()); var _bmpList = _picaRg.bmps.Select(o => new PicaRg4BitmapInfo { Bitmap = o, Format = _picaRg.settings.Format.FormatName }).ToList(); _bitmaps = new List <BitmapInfo>(); _bitmaps.AddRange(_bmpList); } }