The AnnStampObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.
Defines an annotation stamp object.![](dotnetdiagramimages/Leadtools_Annotations_Leadtools_Annotations_AnnStampObject.png)
Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public Class AnnStampObject Inherits AnnTextObject Implements IAnnPictureObject, IAnnTextObject, ICloneable, IDisposable, ISerializable |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As AnnStampObject |
C# | |
---|---|
[SerializableAttribute()] public class AnnStampObject : AnnTextObject, IAnnPictureObject, IAnnTextObject, ICloneable, IDisposable, ISerializable |
C++/CLI | |
---|---|
[SerializableAttribute()] public ref class AnnStampObject : public AnnTextObject, IAnnPictureObject, IAnnTextObject, ICloneable, IDisposable, ISerializable |
This example creates a new stamp object.
Visual Basic | ![]() |
---|---|
Private Sub AnnStampObject_AnnStampObject(ByVal container As AnnContainer, ByVal imageFileName As String) Dim stamp As AnnStampObject = New AnnStampObject() Dim pic As AnnPicture = New AnnPicture(Image.FromFile(imageFileName)) pic.TransparentMode = AnnPictureTransparentMode.None pic.TransparentColor = Color.Black stamp.Picture = pic stamp.Bounds = New AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel) container.Objects.Add(stamp) End Sub |
C# | ![]() |
---|---|
private void AnnStampObject_AnnStampObject(AnnContainer container, string imageFileName) { AnnStampObject stamp = new AnnStampObject(); AnnPicture pic = new AnnPicture(Image.FromFile(imageFileName)); pic.TransparentMode = AnnPictureTransparentMode.None; pic.TransparentColor = Color.Black; stamp.Picture = pic; stamp.Bounds = new AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel); container.Objects.Add(stamp); } |
This class implements the IAnnPictureObject interface and accesses the IAnnPictureObject.Picture property that handles the picture associated with the annotation object.
For more information, refer to Using Pictures in Annotation Objects
For more information about the stamp annotation object refer to AnnStampObject. For more information about the automated stamp annotation object, refer to Annotation Objects - Automated Features and Automated Annotations - Stamp Picture Tab.
System.Object
Leadtools.Annotations.AnnDrawable
Leadtools.Annotations.AnnObject
Leadtools.Annotations.AnnRectangleObject
Leadtools.Annotations.AnnTextObject
Leadtools.Annotations.AnnStampObject
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7