AnnSetTransparent method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetTransparent(HANNOBJECT hObject, bool bTransparent, bool bSelected);

Delphi Syntax

Function AnnSetTransparent(hObject: HANNOBJECT; bTransparent: Boolean; bSelected: Boolean): L_INT;

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets one or more bitmap objects to use a transparent color. A transparent color is not painted when painting an image.

The AnnSetTransparent method is valid only for the following object types when they are using a bitmap:

ANNOBJECT_POINT

ANNOBJECT_STAMP

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

Use the AnnSetTransparent method to set such objects to use a transparent color. By default the transparent color is white (0x00FFFFFF). Use the AnnSetTransparentColor method to set the color to be used as the transparent color. Use the AnnGetTransparent method to get a value that indicates whether the bitmap being used by the annotation object is using a transparent color. Use the AnnGetTransparentColor method to get a value that indicates which color is being used as the transparent color.

In order for the transparent bitmaps to be painted properly the LTEFX14N.DLL needs to be present for WIN32. If the appropriate DLL is not present, the transparent bitmap stamps will be painted as non-transparent bitmap stamps.

When this method is applied to an automation object, it indicates whether the next stamp created will be transparent.

When an object has a bitmap with a region and the object is transparent, the inside of the region is considered non-transparent. If the bitmap has no region, and the object is transparent, a region is created from all non-white pixels, so the white pixels are considered transparent.

See Also

Elements

AnnGetTransparent method, AnnGetSelected method, AnnSetSelected method, AnnGetROP2 method, AnnSetROP2 method, AnnSetTransparentColor method, AnnGetTransparentColor method, AnnGetBackColor method, AnnSetBackColor method, AnnSetForeColor method, AnnGetForeColor method, AnnSetAutoBackColor method

Topics

Annotations (Document/Medical only): Object Manipulation

 

Annotations (Document/Medical only): Object Bitmap

 

Stamp Annotation Object

 

Point Annotation Object

 

Annotation Automation Object

 

Using Color Values in LEADTOOLS

 

Implementing Transparency

 

Altering Annotation Object Settings

 

Displaying and Manipulating Annotation Objects