Creates an annotation object in a container.
#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnCreateItem(hContainer, uObjectType, fVisible, phObject)
Handle to the annotation object that is the container for the object to be created.
The type of annotation object to create. For descriptions of object types, refer to Types of Annotations.
Flag that indicates whether the object will be visible. Possible values are:
Value | Meaning |
---|---|
TRUE | The annotation object will be visible with default properties. |
FALSE | The annotation object will not be visible. |
Address of the variable to be updated with the handle to the 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 phObject
parameter. This function will update the variable with the handle of the new annotation object.
You must use the L_AnnSet... functions to initialize the object after it is created.
You should not call this function during processing of WM_LTANNEVENT if wParam equals LTANNEVENT_REMOVE or LTANNEVENT_INSERT, or during the ANNENUMCALLBACK callback function
Win32, x64.
For an example, refer to Implementing a Non-automated Annotation Program.
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