DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet 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
    Writes dataset to an external DICOM file
    Syntax
    'Declaration
     
    
    Public Overloads Sub Write( _
       ByVal FileName As System.String, _
       ByVal isPart10 As System.Boolean _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim FileName As System.String
    Dim isPart10 As System.Boolean
     
    instance.Write(FileName, isPart10)
    public void Write( 
       System.string FileName,
       System.bool isPart10
    )
    public procedure Write( 
        FileName: System.String;
        isPart10: System.Boolean
    ); 
    public function Write( 
       FileName : System.String,
       isPart10 : System.boolean
    );
    public: void Write( 
       System.string* FileName,
       System.bool isPart10
    ) 
    public:
    void Write( 
       System.String^ FileName,
       System.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.

    Quality is specific to the compression method being used, and is ignored for non-compressed or lossless JPEG transfer syntaxes. For Lossy JPEG, it is an integer in the range 1-100, the higher the number, the better the quality (and the larger the file), and for JPEG 2000 lossy, it is a compression ratio. Other compression methods may use this for other purposes in the future.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also