Gets the background color of one or more annotation objects.
#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnGetAutoBackColor(hObject, uObjectType, pcrBack)
Handle to the annotation object.
Type of object for which to get the background color. For a list of possible values, refer to Types of Annotations.
Pointer to a COLORREF variable to be updated with the background color of the specified object type.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Please note the following:
If uObjectType is | The background color retrieved is |
---|---|
ANNOBJECT_NOTE or ANNOBJECT_PUSHPIN | the background color used for Note objects and push pin objects created by the automation object. |
ANNOBJECT_HILITE | the background color used for Hilite objects created by the automation object. |
ANNOBJECT_REDACT | the background color used for Redact objects created by the automation object. |
Any other object such as ANNOBJECT_TEXT, ANNOBJECT_RECT, etc. | the background color used for all other objects, created by the automation object, which have a background color property. |
Win32, x64.
This example rotates the colors through all of the object types.
L_INT AnnGetAutoBackColorExample(HANNOBJECT hAutomation)
{
L_INT nRet;
L_COLORREF crColor1, crColor2;
nRet = L_AnnGetAutoBackColor(hAutomation, ANNOBJECT_NOTE, &crColor2);
if (nRet != SUCCESS)
return nRet;
nRet = L_AnnGetAutoBackColor(hAutomation, ANNOBJECT_HILITE, &crColor1);
if (nRet != SUCCESS)
return nRet;
nRet = L_AnnSetAutoBackColor(hAutomation, ANNOBJECT_NOTE, crColor1);
if (nRet != SUCCESS)
return nRet;
nRet = L_AnnGetAutoBackColor(hAutomation, ANNOBJECT_REDACT, &crColor1);
if (nRet != SUCCESS)
return nRet;
nRet = L_AnnSetAutoBackColor(hAutomation, ANNOBJECT_HILITE, crColor1);
if (nRet != SUCCESS)
return nRet;
nRet = L_AnnGetAutoBackColor(hAutomation, ANNOBJECT_TEXT, &crColor1);
if (nRet != SUCCESS)
return nRet;
nRet = L_AnnSetAutoBackColor(hAutomation, ANNOBJECT_REDACT, crColor1);
if (nRet != SUCCESS)
return nRet;
return L_AnnSetAutoBackColor(hAutomation, ANNOBJECT_TEXT, crColor2);
}
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.