DicomObjects.NET.V8
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 Stream, _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    )
    'Usage
     
    Dim Stream As Stream
    Dim ReadBehaviour As ReadBehaviours
     
    Dim instance As New DicomImage(Stream, ReadBehaviour)
    public DicomImage( 
       Stream Stream,
       ReadBehaviours ReadBehaviour
    )
    public:
    DicomImage( 
       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.0 or higher

    See Also