Draws the annotation objects inside this AnnAutomation.
public virtual void Realize()
Public Overridable Sub Realize()
public:
virtual void Realize();
This method will draw the annotation objects inside the Container into the System.Windows.Media.Imaging.BitmapSource currently in the Leadtools.Windows.Controls.ImageViewer.
Only visible objects will be painted on the System.Windows.Media.Imaging.BitmapSource.
This method will draw the objects exactly as they would be painted in the current AnnUserMode, unless the System.Windows.Media.Imaging.BitmapSource.Format is System.Windows.Media.PixelFormats.BlackWhite.
Please note that Undo does not work for this operation.
This example creates a new text object and realize it into the System.Windows.Media.Imaging.BitmapSource.
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Private Sub AnnAutomation_Realize(ByVal automation As AnnAutomation)
' make sure no objects are selected
automation.SelectNone()
' add a text object and select it
Dim text As AnnTextObject = New AnnTextObject()
text.FontFamilyName = "Arial"
text.FontSize = 20
text.FontWeight = AnnFontWeight.Bold
text.Foreground = Colors.Red
text.Text = "Realize Text Object!"
text.Rect = New Rect(100, 100, 200, 200)
automation.Container.Children.Add(text)
automation.Realize()
End Sub
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;
private void AnnAutomation_Realize(AnnAutomation automation)
{
// make sure no objects are selected
automation.SelectNone();
// add a text object and select it
AnnTextObject text = new AnnTextObject();
text.FontWeight = AnnFontWeight.Bold;
text.FontFamilyName = "Arial";
text.FontSize = 20;
text.Foreground = Colors.Red;
text.Rect = new Rect(100, 100, 200, 200);
text.Text = "Realize Text Object!";
automation.Container.Children.Add(text);
automation.Realize();
}
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Examples;
using Leadtools.Silverlight.Demos;
private void AnnAutomation_Realize(AnnAutomation automation)
{
// make sure no objects are selected
automation.SelectNone();
// add a text object and select it
AnnTextObject text = new AnnTextObject();
text.FontWeight = AnnFontWeight.Bold;
text.FontFamilyName = "Arial";
text.FontSize = 20;
text.Foreground = Colors.Red;
text.Rect = new Rect(100, 100, 200, 200);
text.Text = "Realize Text Object!";
automation.Container.Children.Add(text);
automation.Realize();
}
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Imports Leadtools.Silverlight.Demos
Private Sub AnnAutomation_Realize(ByVal automation As AnnAutomation)
' make sure no objects are selected
automation.SelectNone()
' add a text object and select it
Dim text As AnnTextObject = New AnnTextObject()
text.FontWeight = AnnFontWeight.Bold
text.FontFamilyName = "Arial"
text.FontSize = 20
text.Foreground = Colors.Red
text.Rect = New Rect(100, 100, 200, 200)
text.Text = "Realize Text Object!"
automation.Container.Children.Add(text)
automation.Realize()
End Sub
![]() |
Products |
Support |
Feedback: Realize Method (AnnAutomation) - 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.