Error processing SSI file
LEADTOOLS Medical (Leadtools.Dicom assembly)

Show in webframe

ChangeTransferSyntax(String,Int32,ChangeTransferSyntaxFlags) Method








Character string that contains the UID of the new Transfer Syntax. For possible values, refer to Transfer Syntax Values.
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.
Indicates how the compression will be performed.
Changes the Transfer Syntax of the Data Set.
Syntax
public void ChangeTransferSyntax( 
   string uid,
   int qualityFactor,
   ChangeTransferSyntaxFlags flags
)
'Declaration
 
Public Overloads Sub ChangeTransferSyntax( _
   ByVal uid As String, _
   ByVal qualityFactor As Integer, _
   ByVal flags As ChangeTransferSyntaxFlags _
) 
'Usage
 
Dim instance As DicomDataSet
Dim uid As String
Dim qualityFactor As Integer
Dim flags As ChangeTransferSyntaxFlags
 
instance.ChangeTransferSyntax(uid, qualityFactor, flags)
public void ChangeTransferSyntax( 
   string uid,
   int qualityFactor,
   ChangeTransferSyntaxFlags flags
)
public void changeTransferSyntax(String uid, int qualityFactor, int changeTransferSyntaxFlags)
 function Leadtools.Dicom.DicomDataSet.ChangeTransferSyntax(String,Int32,ChangeTransferSyntaxFlags)( 
   uid ,
   qualityFactor ,
   flags 
)
public:
void ChangeTransferSyntax( 
   String^ uid,
   int qualityFactor,
   ChangeTransferSyntaxFlags flags
) 

Parameters

uid
Character string that contains the UID of the new Transfer Syntax. For possible values, refer to Transfer Syntax Values.
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.
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.

If this function throws an "Error writing to a file" exception one of the causes could be that your system is missing the LEADTOOLS file filter Leadtools.Codecs.Cmp.dll. Specifically, this error will be returned if either the original transfer syntax or the new transfer syntax is one of the following:

Make sure that the Leadtools.Codecs.Cmp.dll is in the same folder as the other LEAD DLLS. For more information see Files To Be Included With Your Application Note:
This method cannot be used to encode DICOM transfer syntaxes (e.g. video compression support) that are not part of the main medical SDK and it is supported only via the LEADTOOLS Medical Multimedia Module.
Example
For an example, refer to Jpeg2000Options.
Requirements

Target Platforms

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
SendCStoreRequest Method

Error processing SSI file
Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features