DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Write Method / Write(String) Method

The name of the file to write.

This is passed unmodified to the operating system, and it is therefore the container�s responsibility to ensure either that the current directory is set correctly, or that a fully qualified filename is provided.

Example

In This Topic
    Write(String) Method
    In This Topic
    Write the image data to a file
    Syntax
    'Declaration
     
    
    Public Overloads Sub Write( _
       ByVal FileName As System.String _
    ) 
    public void Write( 
       System.string FileName
    )

    Parameters

    FileName

    The name of the file to write.

    This is passed unmodified to the operating system, and it is therefore the container�s responsibility to ensure either that the current directory is set correctly, or that a fully qualified filename is provided.

    Remarks

    The file may subsequently be read by one of the Read method overloads or by other DICOM software.

    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm"); 
    string filename = "output_image.dcm";
    image.Write(filename);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also