DicomObjects.NET8 Documentation
DicomObjects Namespace / DicomImage Class / Write Method / Write(Stream,Boolean) Method

The Stream from which to read.

If TRUE, a blank 128 byte header, DICM marker, and meta-header are written at the start of the stream, and an appropriate transfer syntax is used, as below.

If FALSE, the stream is written in the unofficial, but common format, with no header, and using the little-endian implicit VR transfer syntax.




In This Topic
    Write(Stream,Boolean) Method
    In This Topic
    Write the image data to a stream
    Syntax
    'Declaration
     
    
    Public Overloads Sub Write( _
       ByVal Stream As Stream, _
       ByVal isPart10 As Boolean _
    ) 
    'Usage
     
    
    Dim instance As DicomImage
    Dim Stream As Stream
    Dim isPart10 As Boolean
     
    instance.Write(Stream, isPart10)
    public void Write( 
       Stream Stream,
       bool isPart10
    )
    public:
    void Write( 
       Stream^ Stream,
       bool isPart10
    ) 

    Parameters

    Stream

    The Stream from which to read.

    isPart10

    If TRUE, a blank 128 byte header, DICM marker, and meta-header are written at the start of the stream, and an appropriate transfer syntax is used, as below.

    If FALSE, the stream is written in the unofficial, but common format, with no header, and using the little-endian implicit VR transfer syntax.

    Remarks
    The stream object may subsequently be read by one of the Read method overloads or by other DICOM software.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also