You can create stamp annotation programmatically or with user interaction. For creating annotation with user interaction see Adding Annotations through a User Interface.
[C++]
#include “BiAnno.h”
/* Create a new stamp as annotation object */
// lAnno is a valid annotation handle
if (CreateAnnoObj(lAnno, A_STAMP) != ANNO_UNDEF)
{
// Set image for stamp annotation object
// hBitmap: bitmap object
AnnoObjSetStampBMP(lAnno, hBitmap);
// Set the position of the annotation object
AnnoObjSetPos(lAnno, 10, 10);
// Set the size of the annotation object
AnnoObjSetSize(lAnno, 50, 50);
…
// Refresh annotations
…
}
[VB]
‘ Create a stamp as annotation object
If BiAnno.CreateAnnoObj(aotRect) Then
‘Set image for stamp annotation object
‘ hDib: Handle of the DIB
BiAnno.AnnoObjSetStampDIB (hDib)
‘ Set the position of the annotation object
BiAnno. AnnoObjSetPos (10, 10)
‘ Set the size of the annotation object
BiAnno.AnnoObjSetSize (50, 50)
…
‘ Refresh annotations
…
End If
[C#]
/* Create a stamp as annotation object */
if (BiAnno.CreateAnnoObj(BIANNOLib.ObjectType.aotRect))
{
// Set image for stamp annotation object
// hDib: Handle of the DIB
BiAnno.AnnoObjSetStampDIB(hDib);
// Set the position of the annotation object
BiAnno.AnnoObjSetPos (10, 10)
// Set the size of the annotation object
BiAnno.AnnoObjSetSize (50, 50)
…
// Refresh annotations
…
}