DicomObjects.NetStandard 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 String, _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    )
    'Usage
     
    
    Dim FileName As String
    Dim ReadBehaviour As ReadBehaviours
     
    Dim instance As New DicomImage(FileName, 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: 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