AnnSetBitmap method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetBitmap(HANNOBJECT hObject, TBitmapHandle &Bitmap, bool bSelected)

Delphi Syntax

Function AnnSetBitmap(hObject: HANNOBJECT; Bitmap: TBitmapHandle, bSelected: Boolean): L_INT

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets the bitmap of one or more annotation objects. The specified bitmap is a LEAD bitmap.

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

ANNOBJECT_POINT

ANNOBJECT_PUSHPIN

ANNOBJECT_STAMP

The ANNOBJECT_STAMP objects (which include the Rubber Stamp tools) can display text, a bitmap or a metafile. Only one of these three can be displayed at any time—setting the object to one of these destroys any settings for the other two.

Initially, the ANNOBJECT_STAMP object displays text. The difference between the Stamp and the Rubber Stamp is that initially whereas the Stamp does not display an image, the Rubber Stamp tools are set to display different metafiles (one for each rubber stamp selection).

Use the AnnGetBitmap method to get the bitmap for one or more annotation objects.

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

See Also

Elements:

AnnGetBitmap method, AnnSetSecondaryBitmap method, AnnGetSecondaryBitmap method, AnnGetMetafile, AnnSetPredefinedMetafile method, AnnGetPredefinedMetafile method, AnnGetEncryptOptions method, AnnSetEncryptOptions method, AnnEncryptApply method, AnnGetSecondaryMetafile method, AnnPredefinedBitmap property, AnnGetPointOptions method, AnnEncryptOptions property, AnnSetMetafile method, EncryptBitmap property, AnnPointOptions property, PointUseBitmap property, PointBitmap property

Topics:

Annotations (Document/Medical only): Object Manipulation

 

Annotations (Document/Medical only): Object Bitmap

 

Using Annotation Object Bitmaps

 

Altering Annotation Object Settings

 

Implementing Transparency