#include "Ltdic.h"
L_UINT16 LDicomDS::SetTextObjectInfo(pGraphicAnnSQItem, uTextObjectIndex, pTextObject)
Updates the attributes of a text annotation object.
Pointer to an item element under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".
Index of the text annotation object to be updated
Structure containing the text annotation object attributes.
Value | Meaning |
---|---|
0 | SUCCESS |
>0 | An error occurred. Refer to Return Codes. |
Before calling this function, initialize pTextObject->uStructSize to be sizeof(DICOMTEXTOBJECT) and initialize all the structure members.
Required DLLs and Libraries
Win32, x64
L_INT LDicomDS_SetTextObjectInfoExample(LDicomDS& PresStateDS)
{
L_INT nRet;
DICOMTEXTOBJECT TextObject;
pDICOMELEMENT pGraphicAnnSQItem = PresStateDS.FindFirstGraphicAnnSQItem() ;
memset(&TextObject, 0, sizeof(DICOMTEXTOBJECT));
L_FLOAT pAnchorPoint[2];
L_FLOAT pBRHCorner[2];
L_FLOAT pTLHCorner[2];
pAnchorPoint[0] = (L_FLOAT)1.188;
pAnchorPoint[1] = (L_FLOAT)1.188;
pBRHCorner[0] = (L_FLOAT)1.288;
pBRHCorner[1] = (L_FLOAT)1.288;
pTLHCorner[0] = (L_FLOAT)1.388;
pTLHCorner[1] = (L_FLOAT)1.388;
TextObject.bAnchorPointVisible = FALSE;
TextObject.pAnchorPoint = pAnchorPoint;
TextObject.pBRHCorner = pBRHCorner;
TextObject.pszTextValue = TEXT("Text Value updated");
TextObject.pTLHCorner = pTLHCorner;
TextObject.uAnchorPointUnits = DICANN_UNIT_PIXEL;
TextObject.uBoundingBoxUnits = DICANN_UNIT_PIXEL;
TextObject.pszLayerName = TEXT("First Layer");
TextObject.uTextJustification = DICANN_TEXT_LEFT;
TextObject.uStructSize = sizeof(DICOMTEXTOBJECT);
nRet = PresStateDS.SetTextObjectInfo(pGraphicAnnSQItem, 0, &TextObject);
if (nRet == DICOM_SUCCESS)
{
MessageBox( NULL,
TEXT("Object has been successfully updated."),
TEXT("Note"),
MB_OK);
}
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.