L_UINT16 LDicomDS::AddPresStateImageRefByDS(pDS, pFrameNumbers = NULL, uFramesCount = 0)
Adds a new item to the "Referenced Image Sequence" under the "Presentation State Module"
Dataset which represents the image(SOP Instance) to be referenced.
An array which represents the frame numbers inside the image (SOP Instance) to which the presentation state will be applied.
Number of frames being set.
|>0||An error occurred. Refer to Return Codes.|
This function will add a new item into the "Referenced Image Sequence" (0008,1140) under the "Presentation State Module", by passing a dataset, which represents the image (SOP Instance) to be referenced.
Required DLLs and Libraries
L_INT LDicomDS_AddPresStateImageRefByDSExample(LDicomDS& PresStateDS, LDicomDS& ImageDS)
L_UINT uFramesCount = 2;
L_INT32* FrameNumbers = new L_INT32[uFramesCount];
FrameNumbers = 1;
FrameNumbers = 12;
nRet = PresStateDS.AddPresStateImageRefByDS( &ImageDS,
if (nRet == DICOM_SUCCESS)
TEXT("Image was successfully added to the referenced image sequence."),
delete  FrameNumbers;
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries