Defines an annotation stamp object.
public class AnnStampObject : Leadtools.Windows.Annotations.AnnTextObject, Leadtools.Windows.Annotations.IAnnFont, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnPicture, Leadtools.Windows.Annotations.IAnnRectangle, Leadtools.Windows.Annotations.IAnnText
Public Class AnnStampObject
Inherits Leadtools.Windows.Annotations.AnnTextObject
Implements Leadtools.Windows.Annotations.IAnnFont, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnPicture, Leadtools.Windows.Annotations.IAnnRectangle, Leadtools.Windows.Annotations.IAnnText
public ref class AnnStampObject : public Leadtools.Windows.Annotations.AnnTextObject, Leadtools.Windows.Annotations.IAnnFont, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnPicture, Leadtools.Windows.Annotations.IAnnRectangle, Leadtools.Windows.Annotations.IAnnText
The stamp annotation object can be a picture or a text string in a rectangular frame. If the stamp object has a picture, it will be scaled to fit the bounding rectangle and drawn. If the stamp does not have a picture, the text will be drawn. This class implements the IAnnPicture interface and accesses the IAnnPicture.Picture property that handles the picture associated with the annotation object.
For more information, refer to Using Pictures in WPF Annotation Objects
For more information about the stamp annotation object refer to AnnStampObject for WPF. For more information about the automated stamp annotation object, refer to WPF Annotation Objects - Automated Features and WPF Automated Annotations - Stamp Picture Tab.
For XAML example, refer to AnnGroupObject.
This example creates a new stamp object.
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Private Sub AnnStampObject_AnnStampObject(ByVal container As AnnContainer, ByVal imageFileName As String)
Dim stamp As AnnStampObject = New AnnStampObject()
Dim pic As AnnPicture = New AnnPicture(New BitmapImage(New Uri(imageFileName)))
pic.TransparentMode = AnnTransparentMode.None
pic.TransparentColor = Colors.Black
stamp.Picture = pic
stamp.Rect = New Rect(100, 200, 400, 600)
container.Children.Add(stamp)
End Sub
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;
private void AnnStampObject_AnnStampObject(AnnContainer container, string imageFileName)
{
AnnStampObject stamp = new AnnStampObject();
AnnPicture pic = new AnnPicture(new BitmapImage(new Uri(imageFileName)));
stamp.Rect = new Rect(100, 200, 400, 600);
pic.TransparentMode = AnnTransparentMode.None;
pic.TransparentColor = Colors.Black;
stamp.Picture = pic;
container.Children.Add(stamp);
}
Products |
Support |
Feedback: AnnStampObject Class - Leadtools.Windows.Annotations |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.