DicomObjects.NetStandard 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 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: 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