Sets the contents of the preamble.
#include "Ltdic.h"
L_LTDIC_API L_VOID L_DicomSetPreamble(hDS, pPreamble, nLength)
A DICOM handle.
Character string that contains the preamble to set.
Length of pPreamble. The maximum length is DS_PREAMBLE_LENGTH, which is defined as 128.
None.
The standard length of the Preamble is 128 bytes. You may use the constant DS_PREAMBLE_LENGTH, which is defined as 128, when setting nLength.
If the value specified in nLength is > DS_PREAMBLE_LENGTH, then the Preamble will be set with the first 128 bytes of pPreamble. If nLength is <= DS_PREAMBLE_LENGTH, then the Preamble will be set with the entire contents of pPreamble.
To retrieve the contents of the Preamble, call L_DicomGetPreamble.
Win32, x64, Linux.
This example sets the preamble
L_INT DicomSetPreambleExample(L_VOID)
{
HDICOMDS hDS;
L_UCHAR szPreamble[DS_PREAMBLE_LENGTH];
hDS = L_DicomCreateDS(NULL);
memset(szPreamble, 0xFF, sizeof(szPreamble));
L_DicomSetPreamble(hDS, szPreamble, sizeof(szPreamble));
L_DicomFreeDS(hDS);
return DICOM_SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document