DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Write Method / Write(Stream) Method

The Stream from which to read.

Example

In This Topic
    Write(Stream) Method
    In This Topic
    Write the data to a stream
    Syntax
    'Declaration
     
    
    Public Overloads Sub Write( _
       ByVal Stream As System.IO.Stream _
    ) 
    public void Write( 
       System.IO.Stream Stream
    )

    Parameters

    Stream

    The Stream from which to read.

    Remarks
    The stream object may subsequently be read by one of the Read method overloads or by other DICOM software.
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    using (FileStream fs = new FileStream("output_image.dcm", FileMode.Create, FileAccess.Write))
    {
        image.Write(fs);
    }
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also