Class DicomFileReader
Class for reading DICOM file objects.
Inherited Members
Namespace: Dicom.IO.Reader
Assembly: cs.temp.dll.dll
Syntax
public class DicomFileReader
Constructors
DicomFileReader()
Initializes a new instance of DicomFileReader.
Declaration
public DicomFileReader()
Properties
FileFormat
Gets file format of latest read.
Declaration
public DicomFileFormat FileFormat { get; }
Property Value
| Type | Description |
|---|---|
| DicomFileFormat |
Syntax
Gets the transfer syntax of latest read.
Declaration
public DicomTransferSyntax Syntax { get; }
Property Value
| Type | Description |
|---|---|
| DicomTransferSyntax |
Methods
Read(IByteSource, IDicomReaderObserver, IDicomReaderObserver, Func<ParseState, Boolean>)
Read DICOM file object.
Declaration
public DicomReaderResult Read(IByteSource source, IDicomReaderObserver fileMetaInfo, IDicomReaderObserver dataset, Func<ParseState, bool> stop = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IByteSource | source | Byte source to read. |
| IDicomReaderObserver | fileMetaInfo | Reader observer for file meta information. |
| IDicomReaderObserver | dataset | Reader observer for dataset. |
| Func<ParseState, Boolean> | stop | Stop criterion in dataset. |
Returns
| Type | Description |
|---|---|
| DicomReaderResult | Reader result. |
ReadAsync(IByteSource, IDicomReaderObserver, IDicomReaderObserver, Func<ParseState, Boolean>)
Asynchronously read DICOM file object.
Declaration
public async Task<DicomReaderResult> ReadAsync(IByteSource source, IDicomReaderObserver fileMetaInfo, IDicomReaderObserver dataset, Func<ParseState, bool> stop = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IByteSource | source | Byte source to read. |
| IDicomReaderObserver | fileMetaInfo | Reader observer for file meta information. |
| IDicomReaderObserver | dataset | Reader observer for dataset. |
| Func<ParseState, Boolean> | stop | Stop criterion in dataset. |
Returns
| Type | Description |
|---|---|
| Task<DicomReaderResult> | Awaitable reader result. |