>  Docs Center  >  IDL Reference  >  DICOM Toolkit  >  IDLffDICOM::GetPreamble

IDLffDICOM::GetPreamble

IDLffDICOM::GetPreamble

Syntax | Return Value | Arguments | Keywords | Examples | Version History

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



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us