コード例 #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));
        }
コード例 #2
0
        /// <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));
        }