AnnGetROP2 method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnGetROP2(HANNOBJECT hObject, unsigned &uROP2)

Delphi Syntax

Function AnnGetROP2(hObject: HANNOBJECT; var uROP2: L_UINT ): L_INT

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Gets a constant that indicates which binary raster operation (ROP2) code is being used for one or more objects. ROP2 codes specify how pen or brush colors are to be combined with the colors in the image.

The AnnGetROP2 method is valid only for the following object types:

ANNOBJECT_CROSSPRODUCT

ANNOBJECT_CURVE

ANNOBJECT_CURVECLOSED

ANNOBJECT_ELLIPSE

ANNOBJECT_FREEHAND

ANNOBJECT_FREEHANDHOTSPOT

ANNOBJECT_LINE

ANNOBJECT_POINTER

ANNOBJECT_POINT

ANNOBJECT_POLYGON

ANNOBJECT_POLYLINE

ANNOBJECT_POLYRULER

ANNOBJECT_PROTRACTOR

ANNOBJECT_RECT

ANNOBJECT_RULER

ANNOBJECT_STAMP

ANNOBJECT_TEXTPOINTER

In addition, the Automation object (ANNOBJECT_AUTOMATION) stores ROP2 settings along with the other object default settings

Using the AnnGetROP2 method with an object that does not support it causes the method to return the Error (-16), which is "Feature not supported".

For descriptions of the various types of objects and their properties, refer to Types of Annotations.

Use the AnnSetROP2 method to set the ROP2 code being used for one or more annotation objects.

See Also

Elements

AnnSetROP2 method, AnnGetFillMode method, AnnSetFillMode method, AnnGetTransparent method, AnnSetTransparent method.

Topics

Annotations (Document/Medical only): Object Manipulation

 

Altering Annotation Object Settings

 

Drawing Simple Objects

 

Obtaining Annotation Object Information

 

Using Color Values in LEADTOOLS