Gets the logical origin of this AnnObject.
public virtual Point Origin {get;}
Public Overridable ReadOnly Property Origin As Point
public:
virtual property Point Origin {
Point get();
}
The logical origin of this AnnObject.
This method returns the logical origin of this AnnObject. This value is calculated by returning the origin of the DefiningGeometry value. You can use this origin to Rotate or Scale this object around itself. For more information, refer to Low-Level Coordinate System for WPF Annotations.
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Private Sub AnnObject_Transform(ByVal obj As AnnObject)
' show the matrix
ShowMatrix(obj.Transform)
obj.Translate(2, 3)
ShowMatrix(obj.Transform)
obj.Scale(1.5F, 1.5F, obj.Origin)
ShowMatrix(obj.Transform)
obj.Rotate(45, obj.Origin)
ShowMatrix(obj.Transform)
obj.ResetTransform()
ShowMatrix(obj.Transform)
End Sub
Private Sub ShowMatrix(ByVal mat As Matrix)
Console.Write("{0}, ", mat.M11)
Console.Write("{0}, ", mat.M12)
Console.Write("{0}, ", mat.M21)
Console.Write("{0}, ", mat.M22)
Console.Write("{0}, ", mat.OffsetX)
Console.Write("{0}, ", mat.OffsetY)
End Sub
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;
private void AnnObject_Transform(AnnObject obj)
{
// show the matrix
ShowMatrix(obj.Transform);
obj.Translate(2, 3);
ShowMatrix(obj.Transform);
obj.Scale(1.5F, 1.5F, obj.Origin);
ShowMatrix(obj.Transform);
obj.Rotate(45, obj.Origin);
ShowMatrix(obj.Transform);
obj.ResetTransform();
ShowMatrix(obj.Transform);
}
private void ShowMatrix(Matrix mat)
{
Console.Write("{0}, ", mat.M11);
Console.Write("{0}, ", mat.M12);
Console.Write("{0}, ", mat.M21);
Console.Write("{0}, ", mat.M22);
Console.Write("{0}, ", mat.OffsetX);
Console.Write("{0}, ", mat.OffsetY);
}
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Examples;
private void AnnObject_Transform(AnnObject obj)
{
// show the matrix
ShowMatrix(obj.Transform);
obj.Translate(2, 3);
ShowMatrix(obj.Transform);
obj.Scale(1.5F, 1.5F, obj.Origin);
ShowMatrix(obj.Transform);
obj.Rotate(45, obj.Origin);
ShowMatrix(obj.Transform);
obj.ResetTransform();
ShowMatrix(obj.Transform);
}
private void ShowMatrix(Matrix mat)
{
Console.Write("{0}, ", mat.M11);
Console.Write("{0}, ", mat.M12);
Console.Write("{0}, ", mat.M21);
Console.Write("{0}, ", mat.M22);
Console.Write("{0}, ", mat.OffsetX);
Console.Write("{0}, ", mat.OffsetY);
}
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Private Sub AnnObject_Transform(ByVal obj As AnnObject)
' show the matrix
ShowMatrix(obj.Transform)
obj.Translate(2, 3)
ShowMatrix(obj.Transform)
obj.Scale(1.5F, 1.5F, obj.Origin)
ShowMatrix(obj.Transform)
obj.Rotate(45, obj.Origin)
ShowMatrix(obj.Transform)
obj.ResetTransform()
ShowMatrix(obj.Transform)
End Sub
Private Sub ShowMatrix(ByVal mat As Matrix)
Console.Write("{0}, ", mat.M11)
Console.Write("{0}, ", mat.M12)
Console.Write("{0}, ", mat.M21)
Console.Write("{0}, ", mat.M22)
Console.Write("{0}, ", mat.OffsetX)
Console.Write("{0}, ", mat.OffsetY)
End Sub
Products |
Support |
Feedback: Origin Property (AnnObject) - 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.