LEADTOOLS Raster Imaging C++ Class Library Help > LEADTOOLS Raster Imaging Features > Annotations > Annotation Tools > Stamp Tool |
The stamp annotation object (ANNOBJECT_STAMP) can be a bitmap image, a metafile, or a text string in a rectangular frame. Only one of these three can be displayed at any timesetting the object to one of these destroys any settings for the other two. Initially, the ANNOBJECT_STAMP displays text. In design mode, click and drag to specify a rectangle. Holding down the Shift key while drawing the rectangle will make the stamp annotation square. Then, if a text string is specified, the text is centered in the rectangle. If a bitmap or metafile is specified, the bitmap or metafile is scaled to fit the rectangle.
In design mode, click on the object with the right mouse button to do the following:
Undo the last user action.
Cut or copy the object to the clipboard.
Delete the object.
Select all objects.
Bring the object to the front or send it to the back.
Lock and unlock annotation objects. See Password Dialog Box for Annotations.
Change the Name properties. See Name Dialog Box for Annotations.
Change the frame's line width and style properties. See Line Dialog Box for Annotations.
Change the binary raster operations (ROP2) code. See ROP2 Dialog Box for Annotations.
Change the fill mode (transparent, translucent, or opaque) and the fill pattern. See Fill Dialog Box for Annotations.
Change the foreground and background colors. See Color Dialog Box for Annotations.
Change the font selection and font characteristics. See Font Dialog Box for Annotations.
Edit the text.See Text Dialog Box for Annotations.
Select an image file to load into the stamp. See Stamp Bitmap Dialog Box for Annotations.
Select a metafile to load into the stamp. See Stamp Metafile Dialog Box for Annotations.
Change the fixed properties. See Fixed Dialog Box for Annotations.
Set and manage hyperlink properties for an object or group of objects. Note: The actual management of a hyperlink must be done through low-level implementation. Only the Menu Item "Hyperlink" and an associated event are provided through the automation object. For more information, refer to Implementing Annotation Hyperlinks.
On a device that displays 256 colors or less, you should use a fixed palette when displaying bitmaps. Otherwise, a palette shift will occur on stamp objects that contain bitmaps.
For information on flipping, reversing or rotating annotation objects, refer to Flipping, Reversing and Rotating Annotation Objects.
For low-level implementation details, refer to Stamp Annotation Object.