ChangeTransferSyntax Example for C#
//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestChangeTransferSyntax ( )
{
const string UID_EXPLICIT_VR_BIG_ENDIAN = "1.2.840.10008.1.2.2";
// Explicit VR Big Endian
// Load a Data Set
if (LEADDICOM1.LoadDS("d:\\lead14\\dist\\images\\dicom\\image2.dic",
0) == (short)LTDicomKernelLib.DicomErrorCodes.DICOM_SUCCESS)
{
// Change the Transfer Syntax to Explicit
VR Big Endian
LEADDICOM1.ChangeTransferSyntax(UID_EXPLICIT_VR_BIG_ENDIAN,
0, 0);
// Save the new Data Set
LEADDICOM1.SaveDS("d:\\temp\\Temp.dic",
0);
}
}