Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
ChangeTransferSyntax Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : ChangeTransferSyntax Method




uid
Character string that contains the UID of the new Transfer Syntax.
qualityFactor
The quality factor (Q factor) is a number that determines the degree of loss in the compression process. You can set a value from 2 to 255, where 2 is the highest quality and 255 is the most compression. This parameter only applies when the new Transfer Syntax will involve compressing pixel data using a lossy compression.
flags
Indicates how the compression will be performed.
Changes the Transfer Syntax of the Data Set.

Syntax

Visual Basic (Declaration) 
Public Sub ChangeTransferSyntax( _
   ByVal uid As String, _
   ByVal qualityFactor As Integer, _
   ByVal flags As ChangeTransferSyntaxFlags _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim uid As String
Dim qualityFactor As Integer
Dim flags As ChangeTransferSyntaxFlags
 
instance.ChangeTransferSyntax(uid, qualityFactor, flags)
C# 
public void ChangeTransferSyntax( 
   string uid,
   int qualityFactor,
   ChangeTransferSyntaxFlags flags
)
Managed Extensions for C++ 
public: void ChangeTransferSyntax( 
   string* uid,
   int qualityFactor,
   ChangeTransferSyntaxFlags flags
) 
C++/CLI 
public:
void ChangeTransferSyntax( 
   String^ uid,
   int qualityFactor,
   ChangeTransferSyntaxFlags flags
) 

Parameters

uid
Character string that contains the UID of the new Transfer Syntax.
qualityFactor
The quality factor (Q factor) is a number that determines the degree of loss in the compression process. You can set a value from 2 to 255, where 2 is the highest quality and 255 is the most compression. This parameter only applies when the new Transfer Syntax will involve compressing pixel data using a lossy compression.
flags
Indicates how the compression will be performed.

Example

For an example, refer to Jpeg2000Options.

Remarks

This method will convert the Data Set's Transfer Syntax to the Transfer Syntax specified in uid, maintaining all elements and values in the Data Set.

After this method is called all previous references to data elements in the Data Set will no longer be valid.

This method is especially useful when sending a C-Store Request message using the SendCStoreRequest method. The user can match the Data Set Transfer Syntax with the Transfer Syntax of the SCP.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Dicom requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features