DicomObjects.NET.V8
DicomObjects Namespace / DicomImageCollection Class / Read Method / Read(Byte[],ReadBehaviours) Method
Array of Bytes to read

The behaviours to be used when reading this stream




In This Topic
    Read(Byte[],ReadBehaviours) Method
    In This Topic
    Creates and adds a DicomImage from a byte array
    Syntax
    'Declaration
     
    Public Overloads Function Read( _
       ByVal Array() As Byte, _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    ) As DicomImage
    'Usage
     
    Dim instance As DicomImageCollection
    Dim Array() As Byte
    Dim ReadBehaviour As ReadBehaviours
    Dim value As DicomImage
     
    value = instance.Read(Array, ReadBehaviour)
    public DicomImage Read( 
       byte[] Array,
       ReadBehaviours ReadBehaviour
    )

    Parameters

    Array
    Array of Bytes to read
    ReadBehaviour

    The behaviours to be used when reading this stream

    Return Value

    If successful, a DicomImage Object is returned, and is added to the appropriate collection. If unsuccessful, an appropriate error is thrown.
    Remarks
    This method uses memory stream to read a byte array and creates a new DicomImage and adds it to the DicomImageCollection.
    Requirements

    Target Platforms: .NET CLR 3.5 or higher

    See Also