示例#1
0
        public void Load(string filename)
        {
            FileInfo = new FileInfo(filename);

            if (FileInfo.Exists)
            {
                _stex = new STEX(FileInfo.OpenRead());

                _bitmaps = new List <BitmapInfo> {
                    new StexBitmapInfo {
                        Bitmap = _stex.bmp, Format = (Support.FormatSwitcher)Enum.Parse(typeof(Support.FormatSwitcher), _stex.settings.Format.FormatName)
                    }
                };
            }
        }
示例#2
0
        public void Load(string filename)
        {
            FileInfo = new FileInfo(filename);

            if (FileInfo.Exists)
            {
                _stex = new STEX(FileInfo.OpenRead());

                _bitmaps = new List <BitmapInfo> {
                    new BitmapInfo {
                        Bitmap = _stex.bmp
                    }
                };
            }
        }
示例#3
0
        public void Load(string filename)
        {
            FileInfo = new FileInfo(filename);

            if (FileInfo.Exists)
            {
                _stex = new STEX(FileInfo.OpenRead());

                _bitmaps = new List <BitmapInfo> {
                    new StexBitmapInfo {
                        Bitmap = _stex.bmp, Format = _stex.settings.Format.FormatName
                    }
                };
            }
        }
示例#4
0
        public LoadResult Load(string filename)
        {
            LoadResult result = LoadResult.Success;

            _fileInfo = new FileInfo(filename);

            if (_fileInfo.Exists)
            {
                _stex = new STEX(new FileStream(_fileInfo.FullName, FileMode.Open, FileAccess.Read));
            }
            else
            {
                result = LoadResult.FileNotFound;
            }

            return(result);
        }