DicomObjects.NET.8.48 Documentation
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 System.String, _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    )
    'Usage
     
    
    Dim FileName As System.String
    Dim ReadBehaviour As ReadBehaviours
     
    Dim instance As New DicomImage(FileName, ReadBehaviour)
    public DicomImage( 
       System.string FileName,
       ReadBehaviours ReadBehaviour
    )
    public DicomImage( 
        FileName: System.String;
        ReadBehaviour: ReadBehaviours
    ); 
    public function DicomImage( 
       FileName : System.String,
       ReadBehaviour : ReadBehaviours
    );
    public: DicomImage( 
       System.string* FileName,
       ReadBehaviours* ReadBehaviour
    )
    public:
    DicomImage( 
       System.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.8 or higher

    See Also