DicomObjects.NET.V8
DicomObjects Namespace / DicomDataSet Class / Write Method / Write(Stream,String,Object) Method

The Stream from which to read.

Specifies the full UID of the transfer syntax with which the data 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.

The quality factor to be used.




In This Topic
    Write(Stream,String,Object) Method
    In This Topic
    Writes dataset to a system IO stream object with specified transfer syntax
    Syntax
    'Declaration
     
    Public Overloads Sub Write( _
       ByVal Stream As Stream, _
       ByVal TransferSyntax As String, _
       ByVal Quality As Object _
    ) 
    'Usage
     
    Dim instance As DicomDataSet
    Dim Stream As Stream
    Dim TransferSyntax As String
    Dim Quality As Object
     
    instance.Write(Stream, TransferSyntax, Quality)
    public void Write( 
       Stream Stream,
       string TransferSyntax,
       object Quality
    )
    public:
    void Write( 
       Stream^ Stream,
       String^ TransferSyntax,
       Object^ Quality
    ) 

    Parameters

    Stream

    The Stream from which to read.

    TransferSyntax

    Specifies the full UID of the transfer syntax with which the data 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.

    Quality

    The quality factor to be used.

    Remarks

    The stream 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.

    This method is particularly suitable for use with Delphi, which provides access to streams via classes such as TStreamAdapter.

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also