Updates the attributes of a graphic annotation object.
#include "ltdic.h"
L_LTDIC_API L_UINT16 L_DicomSetGraphicObjectInfo(hDS, pGraphicAnnSQItem, uGraphicObjectIndex, pGraphicObject)
A DICOM handle.
Pointer to an item element under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".
Index of the graphic annotation object to be updated
Pointer to a structure containing the graphic annotation object attributes.
| Value | Meaning |
|---|---|
| DICOM_SUCCESS | The function was successful. |
| >0 | An error occurred. Refer to Return Codes. |
Before calling this function, initialize pGraphicObject->uStructSize to be sizeof(DICOMGRAPHICOBJECT) and initialize all the structure members.
Win32, x64, Linux.
L_INT DicomSetGraphicObjectInfoExample(HDICOMDS hPresStateDS){DICOMGRAPHICOBJECT GraphicObject;L_UINT nCount = 1;pDICOMELEMENT pGraphicAnnSQItem = L_DicomFindFirstGraphicAnnSQItem(hPresStateDS);pDICOMANNPOINT pAnnPoints = new DICOMANNPOINT[nCount];DICOMANNPOINT Point;Point.fX = (L_FLOAT)8.1;Point.fY = (L_FLOAT)8.3;pAnnPoints[0] = Point;memset(&GraphicObject, 0, sizeof(DICOMGRAPHICOBJECT));GraphicObject.bFilled = TRUE;GraphicObject.uType = DICANN_TYPE_POINT;GraphicObject.pszLayerName = TEXT("First Layer");GraphicObject.nPointCount = (L_UINT16)nCount;GraphicObject.uUnits = DICANN_UNIT_PIXEL;GraphicObject.pAnnPoints = pAnnPoints;GraphicObject.uStructSize = sizeof(DICOMGRAPHICOBJECT);L_UINT16 nRet = L_DicomSetGraphicObjectInfo (hPresStateDS, pGraphicAnnSQItem, 0, &GraphicObject);if (nRet == DICOM_SUCCESS){MessageBox( NULL,TEXT("Graphic Object has been successfully updated!"),TEXT("Note"),MB_OK);}if (pAnnPoints)delete [] pAnnPoints;return nRet;}
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
