public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _f3xt = new F3XT(FileInfo.OpenRead()); _bitmaps = new List <BitmapInfo> { new BitmapInfo { Bitmap = _f3xt.Image } }; } }
public LoadResult Load(string filename) { LoadResult result = LoadResult.Success; FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _f3xt = new F3XT(FileInfo.OpenRead()); } else { result = LoadResult.FileNotFound; } return(result); }
public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _f3xt = new F3XT(FileInfo.OpenRead()); var _bmpList = new List <BitmapInfo> { new F3XTBitmapInfo { Bitmap = _f3xt.Image, Format = _f3xt.settings.Format.FormatName } }; var _bitmaps = new List <BitmapInfo>(); _bitmaps.AddRange(_bmpList); } }