DicomObjects.NET8 Documentation
DicomObjects Namespace / DicomImage Class / Write Method / Write(String,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.

Specifies the full UID of the transfer syntax with which the file is to be saved when Part 10 format is used. If omitted, the little-endian explicit VR transfer syntax is used. For details of the currently supported syntaxes, see the entry.




In This Topic
    Write(String,String) Method
    In This Topic
    Write the image data to a file with specified transfer syntax
    Syntax
    'Declaration
     
    
    Public Overloads Sub Write( _
       ByVal FileName As String, _
       ByVal TransferSyntax As String _
    ) 
    'Usage
     
    
    Dim instance As DicomImage
    Dim FileName As String
    Dim TransferSyntax As String
     
    instance.Write(FileName, TransferSyntax)
    public void Write( 
       string FileName,
       string TransferSyntax
    )
    public:
    void Write( 
       String^ FileName,
       String^ TransferSyntax
    ) 

    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.

    TransferSyntax

    Specifies the full UID of the transfer syntax with which the file is to be saved when Part 10 format is used. If omitted, the little-endian explicit VR transfer syntax is used. For details of the currently supported syntaxes, see the entry.

    Remarks

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

    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