Leadtools.Annotations Namespace : AnnStampObject Class |
[SerializableAttribute()] public class AnnStampObject : AnnTextObject, IAnnPictureObject, IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
'Declaration <SerializableAttribute()> Public Class AnnStampObject Inherits AnnTextObject Implements IAnnPictureObject, IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
'Usage Dim instance As AnnStampObject
public sealed class AnnStampObject : IAnnPictureObject, IAnnTextObject, System.ICloneable, IClosable //In WinRT the IDisposable interface is replaced by IClosable, ~Remove~
function Leadtools.Annotations.AnnStampObject()
[SerializableAttribute()] public ref class AnnStampObject : public AnnTextObject, IAnnPictureObject, IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
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.
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
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); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2