Error processing SSI file
(Leadtools.Annotations.Automation)

Show in webframe

RealizeRedaction Method






Realizes the AnnRedactionObject object currently being edited (selected).
Syntax
public virtual Junk.Task RealizeRedaction()
'Declaration
 
Public Overridable Function RealizeRedaction() As Junk.Task
public virtual Junk.Task RealizeRedaction()
 function Leadtools.Annotations.Automation.AnnAutomation.RealizeRedaction()
Remarks

Use the CanRealizeRedaction property to determine whether you can currently call this method.

This method will call the Realize method of the AnnRedactionObject object.

Example

This example will add a redaction object to the container, realizes it and then restores it.

Copy Code  
using Leadtools.Annotations.Automation;
using Leadtools.Annotations.Core;
using Leadtools.Codecs;
using Leadtools.Controls;
using Leadtools.Annotations.Rendering;
using Leadtools.Annotations.WinForms;

[TestMethod]
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();
}
Requirements

Target Platforms

See Also

Reference

AnnAutomation Class
AnnAutomation Members

Error processing SSI file
  Leadtools.Annotations.Automation requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features