Sets the contents of the preamble.
#include "Ltdic.h"
L_VOID LDicomDS::SetPreamble(pPreamble, nLength)
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 LDicomDS::GetPreamble.
Win32, x64
This example sets the preamble.
L_INT LDicomDS_SetPreambleExample()
{
LDicomDS* pDS;
L_UCHAR szPreamble[DS_PREAMBLE_LENGTH];
pDS = new LDicomDS(NULL);
memset(szPreamble, 0xFF, sizeof(szPreamble));
pDS->SetPreamble(szPreamble, sizeof(szPreamble));
delete pDS;
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