virtual L_UINT LAnnotation::GetROP2()
Gets a constant that indicates which binary raster operation (ROP2) code is being used for one or more objects.
The ROP2 code. Possible values are:
[0x0000] Draw the object using the object's color
[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.
[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.
Default is ANNROP2_COPY.
The ROP2 codes specify how pen or brush colors are to be combined with the colors in the image.
The LAnnotation::GetROP2 function is valid only for the following object types:
Stamp (including the Rubber Stamp)
In addition, the Automation object stores ROP2 settings along with the other object default settings
If you try to use the LAnnotation::GetROP2 function with an object that does not support it, the method returns Error (-16), which is "Feature not supported".
Call the LAnnotation::SetROP2 function to set the ROP2 code being used for one or more annotation objects.
Required DLLs and Libraries
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
L_INT LAnnotation_GetROP2Example(LAnnotation& LeadAnn)
L_INT nRet =SUCCESS;
L_UINT uRop2; // ROP2 code
// Get the current ROP2 code
uRop2 = LeadAnn.GetROP2();
// if the code is not ANNROP2_AND, make it so
if(uRop2 != ANNROP2_AND)
nRet = LeadAnn.SetROP2( nRet = ANNROP2_AND, ANNFLAG_RECURSE); // set ROP2 code
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries