DicomFile

DicomFile class

Encapsulates basic DICOM functionality.

public sealed class DicomFile

Constructors

NameDescription
DicomFile()Initializes a new instance of the DicomFile class.
DicomFile(Dataset)Initializes a new instance of the DicomFile class with the given dataset.
DicomFile(DicomFile)Initializes a new instance of the DicomFile class using the data from the given file.
DicomFile(MetaInformation, Dataset)Initializes a new instance of the DicomFile class with the given dataset.

Properties

NameDescription
Dataset { get; }DICOM File Dataset. Read-only Dataset.
MetaInfo { get; }DICOM File Meta Information. Read-only MetaInformation.
NumberOfFrames { get; }The number of frames in the DICOM file. Read-only, Int32.

Methods

NameDescription
static Open(Stream, Encoding?, ITagDataReadingStrategy?)Reads the specified DICOM file and returns the DicomFile.
static Open(string, Encoding?, ITagDataReadingStrategy?)Reads the specified DICOM file and returns the DicomFile.
RenderImage(int)Renders the DICOM image stored at the given frameIndex in Pixel Data into RawImage.
RenderImage(RenderOptions, int)Renders the DICOM image stored at the given frameIndex in Pixel Data into RawImage.
Save(Stream, SaveOptions?)Saves DICOM file into the given stream.
Save(string, SaveOptions?)Saves DICOM file into the given file.
Transcode(TransferSyntax)Transcodes this DicomFile from MetaInfo.TransferSyntax to the given syntax.

See Also