#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnGetROP2(hObject, puRop2)
Gets a constant that indicates which binary raster operation (ROP2) code is being used for one or more objects.
Handle to the annotation object.
Address of the variable to be updated with the ROP2 code. Possible ROP2 code values are:
Value | Meaning |
---|---|
ANNROP2_COPY | [0x0000] Draw the object using the object's color |
ANNROP2_AND | [0x0001] Draw the object, performing an AND operation between the object's color and the background color. This creates a highlight effect. White objects become transparent. |
ANNROP2_XOR | [0x0002]Draw the object, performing an XOR operation between the object's color and the background color. This creates an inverted effect. Black objects become transparent. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
The ROP2 code for the object is retrieved and stored in the memory location indicated by puROP2
.
ROP2 codes specify how pen or brush colors are to be combined with the colors in the image.
The L_AnnGetROP2 function is valid only for the following object types:
In addition, the Automation object stores ROP2 settings along with the other object default settings
If you try to use the L_AnnGetROP2 function with an object that does not support it, the function returns error ERROR_FEATURE_NOT_SUPPORTED.
Call the L_AnnSetROP2 function to set the ROP2 code being used for one or more annotation objects.
Required DLLs and Libraries
Win32, x64.
For an example, refer to L_AnnSetROP2.
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