AnnSetTransparent method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax short AnnSetTransparent(OLE_HANDLE hObject, BOOL bTransparent, BOOL bSelected);

Overview:  Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets one or more bitmap stamp objects to use white as a transparent color.

Only bitmap stamps can be transparent. In transparent stamps, all the white pixels are considered transparent. In order for the transparent bitmaps to be painted properly the LTEFXU.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

Topics:  Annotations (Document/Medical only): Object Bitmap