DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / DicomImage Constructor / DicomImage Constructor(String,ReadBehaviours)

The name of the file to read.

This is passed unmodified to the operating system, and it is therefore the container's responsibility to ensure either that the file exists within the current directory, or that a fully qualified filename is provided.

The behaviours to be used when reading this stream




In This Topic
    DicomImage Constructor(String,ReadBehaviours)
    In This Topic
    Creates a new DicomImage from an external DICOM file
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal FileName As String, _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    )
    'Usage
     
    Dim FileName As String
    Dim ReadBehaviour As ReadBehaviours
     
    Dim instance As New DicomImage(FileName, ReadBehaviour)
    public DicomImage( 
       string FileName,
       ReadBehaviours ReadBehaviour
    )
    public:
    DicomImage( 
       String^ FileName,
       ReadBehaviours^ ReadBehaviour
    )

    Parameters

    FileName

    The name of the file to read.

    This is passed unmodified to the operating system, and it is therefore the container's responsibility to ensure either that the file exists within the current directory, or that a fully qualified filename is provided.

    ReadBehaviour

    The behaviours to be used when reading this stream

    Return Value

    Remarks
    A direct constructor of DicomImage. Reads an external DICOM file to create a new DicomImage object.
    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also