Defines an annotation stamp object.
Object Model
Syntax
Example
This example creates a new stamp object.
Visual Basic | Copy Code |
---|
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# | Copy Code |
---|
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); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also