#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnRemove(hObject)
Removes the specified annotation object from its current container, leaving the object with no container.
Handle to the annotation object.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
If you want the object to be inserted into another container, such as the main container of the display, you must use the L_AnnInsert function.
Required DLLs and Libraries
Win32, x64.
This example removes an object from its container and inserts it into the root container.
L_INT AnnRemoveExample(HANNOBJECT hAnnObject)
{
L_INT nRet;
HANNOBJECT RootContainer; /* Root container */
/* Get the root container */
nRet = L_AnnGetTopContainer(hAnnObject, &RootContainer);
if(nRet != SUCCESS)
return nRet;
/* Remove the object from its current container */
nRet = L_AnnRemove(hAnnObject);
if(nRet != SUCCESS)
return nRet;
/* Insert the object into the root container */
nRet = L_AnnInsert(RootContainer, hAnnObject, FALSE);
if(nRet != SUCCESS)
return nRet;
return SUCCESS;
}
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.