IDLffDICOM::GetPreamble

The IDLffDICOM::GetPreamble function method returns the preamble of a DICOM v3.0 Part 10 file.

Syntax

Result = Obj->[IDLffDICOM::]GetPreamble()

Return Value

Returns a 128-element byte array containing the preamble, which is a fixed 128 byte field available for implementation specified usage. If it is not used by the implementor of the file, it will be set to all zeroes.

Arguments

None

Keywords

None

Examples

; Create a DICOM object, read a DICOM file:

obj = OBJ_NEW('IDLffDICOM')

var = obj->Read(DIALOG_PICKFILE(FILTER = '*'))

 

; Get an array of the byte contents of the DICOM file preamble:

arr = obj->GetPreamble()

PRINT, arr

 

OBJ_DESTROY, obj

Version History

5.2

Introduced