Save() public method

public Save ( string path, int bpp ) : void
path string
bpp int
return void
Example #1
0
        private void SaveMenuItem_Click(object sender, EventArgs e)
        {
            osFilter.SetFilter(IXCImageFile.Filter.Save);
            saveDictionary.Clear();
            loadedTypes.CreateFilter(osFilter, saveDictionary);
            var dir            = Path.GetDirectoryName(_currentFilePath);
            var fileWithoutExt = Path.GetFileNameWithoutExtension(_currentFilePath);

            // Backup
            _fileBackupManager.Backup(_currentFilePath);

            // Save
            PckFile.Save(
                dir,
                fileWithoutExt,
                _totalViewPck.Collection,
                _currentFileBpp);
            SavedFile = true;
        }