L_DicomGetPreamble

Summary

Gets the contents of the files preamble.

Syntax

#include "Ltdic.h"

L_LTDIC_API L_VOID L_DicomGetPreamble(hDS, pPreamble, nLength)

Parameters

HDICOMDS hDS

A DICOM handle.

L_UCHAR * pPreamble

Character string to be updated with the contents of the preamble.

L_UINT16 nLength

Length of pPreamble, in bytes. The maximum length is DS_PREAMBLE_LENGTH, which is defined as 128.

Returns

None.

Comments

To set the Preamble use L_DicomSetPreamble.

If the value specified in nLength is >= DS_PREAMBLE_LENGTH, then pPreamble will be updated with the entire Preamble. If nLength is < DS_PREAMBLE_LENGTH, then pPreamble will be updated with a truncated version of the Preamble with length nLength.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

This example gets the default preamble

L_INT DicomGetPreambleExample(L_VOID) 
{ 
   HDICOMDS hDS; 
   L_UCHAR   szPreamble[DS_PREAMBLE_LENGTH]; 
 
   hDS = L_DicomCreateDS(NULL); 
   L_DicomGetPreamble(hDS, szPreamble, sizeof(szPreamble)); 
   L_DicomFreeDS(hDS); 
 
   return DICOM_SUCCESS; 
} 

Help Version 23.0.2024.7.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.