Leadtools.ImageProcessing.Core Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
RakeRemoveCommandEventArgs Class
See Also  Members   Example 
Leadtools.ImageProcessing.Core Namespace : RakeRemoveCommandEventArgs Class



Handles each rake found by RakeRemoveCommand.

Syntax

Visual Basic (Declaration) 
Public Class RakeRemoveCommandEventArgs 
   Inherits EventArgs
Visual Basic (Usage)Copy Code
Dim instance As RakeRemoveCommandEventArgs
C# 
public class RakeRemoveCommandEventArgs : EventArgs 
C++/CLI 
public ref class RakeRemoveCommandEventArgs : public EventArgs 

Example

Runs the RakeRemoveCommand on an image.

Visual BasicCopy Code
Public WithEvents rakeRemoveCommand_S4 As RakeRemoveCommand
Public Sub RakeRemoveCommandEventArgsExample()
   RasterCodecs.Startup()
   Dim codecs As New RasterCodecs()
   codecs.ThrowExceptionsOnInvalidImages = True

   Dim leadImage As RasterImage = codecs.Load(LeadtoolsExamples.Common.ImagesPath.Path + "Clean.tif")

   ' Prepare the command
   rakeRemoveCommand_S4 = New RakeRemoveCommand(50, 3, 10, 25, 60, 50, 5, 1, 1, False)
   rakeRemoveCommand_S4.Run(leadImage)

   RasterCodecs.Shutdown()
End Sub

Private Sub RakeRemoveCommand_RakeRemove_S4(ByVal sender As Object, ByVal e As RakeRemoveCommandEventArgs) Handles rakeRemoveCommand_S4.RakeRemove
   Dim ee As RakeRemoveCommandEventArgs = New RakeRemoveCommandEventArgs(e.Region, e.Length)
   e.Status = RemoveStatus.Remove

End Sub
C#Copy Code
public void RakeRemoveCommandEventArgsExample() 

    // Load an image 
    RasterCodecs.Startup(); 
    RasterCodecs codecs = new RasterCodecs(); 
    codecs.ThrowExceptionsOnInvalidImages = true; 
 
       RasterImage image =codecs.Load( "D:\\Lead15\\images2\\LEADTOOLS Images\\Master.jpg"); 
 
    // Prepare the command 
    RakeRemoveCommand command = new RakeRemoveCommand(50, 3, 10, 25, 60, 50, 5, 1, 1, false); 
    command.RakeRemove += new EventHandler<RakeRemoveCommandEventArgs>(RakeRemoveEvent_S4); 
    command.Run(image); 
 
    RasterCodecs.Shutdown(); 

 
private void RakeRemoveEvent_S4(object sender, RakeRemoveCommandEventArgs e) 

    RakeRemoveCommandEventArgs ee = new RakeRemoveCommandEventArgs( e.Region,  e.Length); 
    e.Status = RemoveStatus.Remove; 
 
}

Inheritance Hierarchy

System.Object
   System.EventArgs
      Leadtools.ImageProcessing.Core.RakeRemoveCommandEventArgs

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also