ImageMan.Net Version 3 Summer 2012 Release
CleanBorderCommand Class
Members  Example  See Also  Send Feedback
DTI.ImageMan.Commands Namespace : CleanBorderCommand Class





Glossary Item Box

Cleans the border areas of an image.

Object Model

CleanBorderCommand Class

Syntax

Visual Basic (Declaration) 
Public Class CleanBorderCommand 
   Implements DTI.ImageMan.IProcessImage 
Visual Basic (Usage)Copy Code
Dim instance As CleanBorderCommand
C# 
public class CleanBorderCommand : DTI.ImageMan.IProcessImage  
JScript 
public class CleanBorderCommand implements DTI.ImageMan.IProcessImage 
Managed Extensions for C++ 
public __gc class CleanBorderCommand : public DTI.ImageMan.IProcessImage  
C++/CLI 
public ref class CleanBorderCommand : public DTI.ImageMan.IProcessImage  

Remarks

This command will clean the black borders off the image by whiting them out. The following code cleans the borders on the current image in the viewer control.
        DTI.ImageMan.Commands.CleanBorderCommand clean = new DTI.ImageMan.Commands.CleanBorderCommand();
    clean.Process(viewer1.Images.CurrentImage);
    if (clean.Cleaned)
        viewer1.Images.CurrentImage = viewer1.Images.CurrentImage;

Example

The following code cleans the borders on the current image in the viewer control.
C#Copy Code
DTI.ImageMan.Commands.CleanBorderCommand clean = new DTI.ImageMan.Commands.CleanBorderCommand();
   clean.Process(viewer1.Images.CurrentImage);
   if (clean.Cleaned)
       viewer1.Images.CurrentImage = viewer1.Images.CurrentImage;

Inheritance Hierarchy

System.Object
   DTI.ImageMan.Commands.CleanBorderCommand

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.