DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / DicomImage Constructor / DicomImage Constructor(Stream,ReadBehaviours)

The Stream from which to read.

The behaviours to be used when reading this stream







In This Topic
    DicomImage Constructor(Stream,ReadBehaviours)
    In This Topic
    Reads a stream into a new DicomImage
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal Stream As System.IO.Stream, _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    )
    'Usage
     
    
    Dim Stream As System.IO.Stream
    Dim ReadBehaviour As ReadBehaviours
     
    Dim instance As New DicomImage(Stream, ReadBehaviour)
    public DicomImage( 
       System.IO.Stream Stream,
       ReadBehaviours ReadBehaviour
    )
    public DicomImage( 
        Stream: System.IO.Stream;
        ReadBehaviour: ReadBehaviours
    ); 
    public function DicomImage( 
       Stream : System.IO.Stream,
       ReadBehaviour : ReadBehaviours
    );
    public: DicomImage( 
       System.IO.Stream* Stream,
       ReadBehaviours* ReadBehaviour
    )
    public:
    DicomImage( 
       System.IO.Stream^ Stream,
       ReadBehaviours^ ReadBehaviour
    )

    Parameters

    Stream

    The Stream from which to read.

    ReadBehaviour

    The behaviours to be used when reading this stream

    Return Value

    Remarks

    A direct constructor of DicomImage. This method can read streams in either official "Part10" format, with the 128 byte header, or unofficial "Part5" format, without a header. Detection of the type is automatic.

    The stream may have been written by the Write method or by other DICOM software.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also