AnnSetTransparent method (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short AnnSetTransparent(long hObject, VARIANT_BOOL bTransparent, VARIANT_BOOL bSelected);

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 the image is painted.

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

ANN_OBJECT_POINT

ANN_OBJECT_STAMP

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

Call the AnnSetTransparent method to set such objects to use a transparent color. By default the transparent color is white (0x00FFFFFF).

When this method is applied to an automation object, it indicates whether the next bitmap object 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 the pixels that are not the transparent color.

Call the AnnSetTransparentColor method to set the color to be used as the transparent color. Call the AnnGetTransparent method to get a value that indicates whether the bitmap being used by the annotation object is using a transparent color. Call the AnnGetTransparentColor method to get a value that indicates which color is being used as the transparent color.

If the value of the AnnContainer property is passed as the hObject parameter, the method will modify all the annotations in the container depending on the value of bSelected parameter.

If the value of the AnnAutomation property is passed as the hObject parameter, the method will modify the default values used whenever an annotation is created.

See Also

Elements

AnnAlpha property, AnnAutoSnapCursor property, AnnCalibrateRuler method, AnnFillMode property, AnnGetFillModeExt method, AnnGetOptions method, AnnGetRotateOptions method, AnnGetTextOptions method, AnnSetFillModeExt method, AnnSetOptions method, AnnSetRotateOptions method, AnnSetTextOptions method, AnnShowBorder property, AnnShowRotateHandles property, AnnShowText property, AnnTextColor property, AnnTextEdit method, AnnGetTransparent method, AnnGetSelected method, AnnSetSelected method, AnnGetROP2 method, AnnSetROP2 method

Topics

Annotations (Document/Medical only): Bitmap

 

Annotations (Document/Medical only): Displaying Annotations

 

Annotations (Document/Medical only): Getting and Setting Color Properties

 

Displaying and Manipulating Annotation Objects

 

Implementing Transparency