Defines an annotation point object.
public class AnnPointObject : Leadtools.Windows.Annotations.AnnObject, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnPicture, Leadtools.Windows.Annotations.IAnnPoint
Public Class AnnPointObject
Inherits Leadtools.Windows.Annotations.AnnObject
Implements Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnPicture, Leadtools.Windows.Annotations.IAnnPoint
The point object is a single point. This object works in two ways: If the value of ShowPicture is true; this object will draw the picture in Picture with CenterPoint as the center point. Stroke, StrokeBrush, Fill, FillBrush and Radius will be ignored. If ShowPicture is false; this object will draw an ellipse using Stroke, Fill and Radius around CenterPoint. 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 point annotation object refer to AnnPointObject for WPF. For more information about the automated point annotation object, refer to WPF Annotation Objects - Automated Features and WPF Automated Annotations - Point Tab.
This example adds a new point object to a container.
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Private Sub AnnPointObject_AnnPointObject(ByVal viewer As ImageViewer, ByVal container As AnnContainer)
Dim point As AnnPointObject = New AnnPointObject()
point.CenterPoint = New System.Windows.Point(100, 100)
point.ShowPicture = True
' default picture, no need to change anything
container.Children.Add(point)
MessageBox.Show("Picture")
' show with a radius
point.Radius = 16.0
point.Stroke = Colors.Red
point.StrokeThickness = 1.0
point.ShowPicture = False
MessageBox.Show("No picture")
End Sub
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;
private void AnnPointObject_AnnPointObject(ImageViewer viewer, AnnContainer container)
{
AnnPointObject point = new AnnPointObject();
point.CenterPoint = new Point(100, 100);
point.ShowPicture = true;
// default picture, no need to change anything
container.Children.Add(point);
MessageBox.Show("Picture");
// show with a radius
point.Radius = 16.0;
point.Stroke = Colors.Red;
point.StrokeThickness = 1.0;
point.ShowPicture = false;
MessageBox.Show("No picture");
}
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Examples;
private void AnnPointObject_AnnPointObject(ImageViewer viewer, AnnContainer container)
{
AnnPointObject point = new AnnPointObject();
point.CenterPoint = new Point(100, 100);
point.ShowPicture = true;
// default picture, no need to change anything
container.Children.Add(point);
MessageBox.Show("Picture");
// show with a radius
point.Radius = 16.0;
point.Stroke = Colors.Red;
point.StrokeThickness = 1.0;
point.ShowPicture = false;
MessageBox.Show("No picture");
}
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Private Sub AnnPointObject_AnnPointObject(ByVal viewer As ImageViewer, ByVal container As AnnContainer)
Dim point As AnnPointObject = New AnnPointObject()
point.CenterPoint = New Point(100, 100)
point.ShowPicture = True
' default picture, no need to change anything
container.Children.Add(point)
MessageBox.Show("Picture")
' show with a radius
point.Radius = 16.0
point.Stroke = Colors.Red
point.StrokeThickness = 1.0
point.ShowPicture = False
MessageBox.Show("No picture")
End Sub
<Window x:Class="WPFSamples.AnnPointObject"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Leadtools.Windows.Annotations" Height="600" Width="800"
xmlns:Leadtools_Windows_Annotations="clr-namespace:Leadtools.Windows.Annotations;assembly=Leadtools.Windows.Annotations"
>
<Leadtools_Windows_Annotations:AnnPointObject
Stroke="Blue"
StrokeThickness="3.0"
ShowPicture="False"
Picture="{x:Null}"
Radius="25"
CenterPoint="100,100"
Header="Point Object"/>
</Window>
Products |
Support |
Feedback: AnnPointObject 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.