Realizes the AnnRedactionObject object currently being edited (selected).
public virtual Task RealizeRedaction()
Public Overridable Function RealizeRedaction() As Task
public virtual Task RealizeRedaction()
function Leadtools.Annotations.Automation.AnnAutomation.RealizeRedaction()
Use the CanRealizeRedaction property to determine whether you can currently call this method.
This method will call the Realize method of the AnnRedactionObject object.
This example will add a redaction object to the container, realize it and then restore it.
using Leadtools.Annotations.Automation;
using LeadtoolsExamples.Common;
using Leadtools.Annotations.Core;
using Leadtools.Codecs;
using Leadtools.Controls;
using Leadtools.Annotations.Rendering;
using Leadtools.Annotations.WinForms;
public void AnnAutomation_RealizeRedaction()
{
//Add two AnnRedactionObjects to our AnnContainer
AnnRedactionObject firstRedaction = new AnnRedactionObject();
firstRedaction.Rect = LeadRectD.Create(100, 100, 200, 200);
firstRedaction.Fill = AnnSolidColorBrush.Create("black");
AnnRedactionObject secondRedaction = new AnnRedactionObject();
secondRedaction.Rect = LeadRectD.Create(300, 300, 200, 200);
secondRedaction.Fill = AnnSolidColorBrush.Create("black");
_automation.Container.Children.Add(firstRedaction);
_automation.Container.Children.Add(secondRedaction);
//Invalidate the AnnAutomation
_automation.Invalidate(LeadRectD.Empty);
//Select the first AnnRedactionObject
_automation.SelectObject(firstRedaction);
//Realize only the selected objects
//In this case, only firstRedaction is burned to the image
_automation.RealizeRedaction();
}
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.