#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnCopy(hSource, phDest)
Makes a copy of an annotation object.
Handle to the annotation object to be copied.
Address of the HANNOBJECT variable to be updated with the handle of the new annotation object.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes |
(Document and Medical) Before calling this function, you must declare a variable of data type HANNOBJECT. Then, pass the address of the variable in the phDest
parameter. This function will update the variable with the handle of the annotation object created by the copy.
Required DLLs and Libraries
Win32, x64.
This example copies an object and moves the copy so that it can be seen.
L_INT AnnCopyExample(HANNOBJECT hContainer,
HANNOBJECT hAnnObject)
{
L_INT nRet;
HANNOBJECT NewObject; /* New object created by copying */
ANNRECT ContainerRect; /* Rectangle for positioning the new object */
/* Copy the incoming object and insert it into the container */
nRet = L_AnnCopy(hAnnObject, &NewObject);
if(nRet != SUCCESS)
return nRet;
nRet = L_AnnInsert(hContainer, NewObject, FALSE);
if(nRet != SUCCESS)
return nRet;
/* Move the new object down and to the right */
nRet = L_AnnGetRect(hContainer, &ContainerRect, NULL);
if(nRet != SUCCESS)
return nRet;
nRet = L_AnnMove(NewObject,
(ContainerRect.right - ContainerRect.left) / 20,
(ContainerRect.bottom - ContainerRect.top) / 20,
0);
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