DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / Write Method / Write(String,Boolean) 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.

If TRUE, a blank 128 byte header, DICM marker, and meta-header are written at the start of the file, and an appropriate transfer syntax is used, as below.

If FALSE, the file is written in the unofficial, but common format, with no header, and using the little-endian implicit VR transfer syntax.




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

    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.

    isPart10

    If TRUE, a blank 128 byte header, DICM marker, and meta-header are written at the start of the file, and an appropriate transfer syntax is used, as below.

    If FALSE, the file is written in the unofficial, but common format, with no header, and using the little-endian implicit VR transfer syntax.

    Remarks

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

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also