public DicomFile LoadDicomFile(LoadSopDicomFileArgs args) { if (args.ForceCompleteHeader && !CanLoadCompleteHeader) { throw new NotSupportedException("Provider doesn't support loading the complete header."); } if (args.IncludePixelData && !CanLoadPixelData) { throw new NotSupportedException("Provider doesn't support inclusion of pixel data."); } return(_loadDicomFile(args)); }
public DicomFile LoadDicomFile(LoadSopDicomFileArgs args) { if (args.ForceCompleteHeader) LoadFullHeader(args.IncludePixelData); return new DicomFile(null, MetaInfo.Copy(), DataSet.Copy()); }
public DicomFile LoadDicomFile(LoadSopDicomFileArgs args) { if (args.ForceCompleteHeader && !CanLoadCompleteHeader) throw new NotSupportedException("Provider doesn't support loading the complete header."); if (args.IncludePixelData && !CanLoadPixelData) throw new NotSupportedException("Provider doesn't support inclusion of pixel data."); return _loadDicomFile(args); }