Пример #1
0
        /// <summary>Creates a DicomStreamReader for reading DICOM data elements from a stream using the given transfer syntax</summary>
        public static DicomStreamReader Create(BufferedStreamReader input, DicomUID transferSyntaxUID)
        {
            var transferSyntax = new DicomTransferSyntax(transferSyntaxUID);

            return(new DicomStreamReader(input, transferSyntax));
        }
        /// <summary>Creates a DicomStreamWriter for writing DICOM data elements to a stream using the given transfer syntax</summary>
        public static DicomStreamWriter Create(BufferedStreamWriter output, DicomUID transferSyntaxUID)
        {
            var transferSyntax = new DicomTransferSyntax(transferSyntaxUID);

            return(new DicomStreamWriter(output, transferSyntax));
        }