#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnGetVisible(hObject, pfVisible)
Gets a value that indicates whether the specified annotation object is visible.
Handle to the annotation object.
Address of the variable to be updated with a value indicating whether the annotation object is visible. Possible values are:
Value | Meaning |
---|---|
TRUE | The object is visible. |
FALSE | The object is not visible. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
For a container object, the visible property determines whether objects in the container can be displayed. For other types of objects, the visible property determines whether the individual object can be displayed.
Before calling this function, you must declare a variable of data type L_BOOL. Then, pass the address of the variable in the pfVisible
parameter. This function will update the variable with the annotation object's current value of the visible property.
Required DLLs and Libraries
Win32, x64.
This example uses a callback function (called by L_AnnEnumerate) to count the number of invisible objects.
L_INT EXT_CALLBACK AnnGetVisibleExample(HANNOBJECT hObject,
L_INT* pUserData)
{
L_BOOL IsVisible; /* Indicates whether the object is visible */
L_INT ObjectCount; /* The number of objects */
/* Initialize the object count */
ObjectCount = (L_INT) *pUserData;
/* Get the current value of the visible property */
L_AnnGetVisible (hObject, &IsVisible);
/* Update the counter if the object is not visible */
if (IsVisible == FALSE)
{
++ObjectCount;
}
/* Update the caller's variable */
*pUserData = ObjectCount;
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