コード例 #1
0
 /// <summary>
 /// Initializes new DICOM file format from dataset
 /// </summary>
 /// <param name="dataset">Dataset</param>
 public DicomFileFormat(DcmDataset dataset)
 {
     _metainfo = new DcmFileMetaInfo();
     _metainfo.FileMetaInformationVersion   = DcmFileMetaInfo.Version;
     _metainfo.MediaStorageSOPClassUID      = dataset.GetUID(DicomTags.SOPClassUID);
     _metainfo.MediaStorageSOPInstanceUID   = dataset.GetUID(DicomTags.SOPInstanceUID);
     _metainfo.TransferSyntax               = dataset.InternalTransferSyntax;
     _metainfo.ImplementationClassUID       = Implementation.ClassUID;
     _metainfo.ImplementationVersionName    = Implementation.Version;
     _metainfo.SourceApplicationEntityTitle = "";
     _dataset = dataset;
 }