/// <summary> /// Load DICOM dictionary data from file. /// </summary> /// <param name="file">File name.</param> /// <param name="format">File format.</param> public void Load(string file, DicomDictionaryFormat format) { using (var fs = IOManager.CreateFileReference(file).OpenRead()) { var s = fs; if (file.EndsWith(".gz")) { s = new GZipStream(s, CompressionMode.Decompress); } var reader = new DicomDictionaryReader(this, format, s); reader.Process(); } }
public void Load(string file, DicomDictionaryFormat format) { using (var fs = File.OpenRead(file)) { Stream s = fs; if (file.EndsWith(".gz")) { s = new GZipStream(s, CompressionMode.Decompress); } DicomDictionaryReader reader = new DicomDictionaryReader(this, format, s); reader.Process(); } }
public DicomDictionaryReader(DicomDictionary dict, DicomDictionaryFormat format, Stream stream) { _dict = dict; _format = format; _stream = stream; }