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





image
ImImage To Process

Glossary Item Box

Process the image passed in by whiting out it's borders if any exist.

Syntax

Visual Basic (Declaration) 
Public Overridable Function Process( _
   ByVal image As ImImage _
) As ImImage
Visual Basic (Usage)Copy Code
Dim instance As CleanBorderCommand
Dim image As ImImage
Dim value As ImImage
 
value = instance.Process(image)
C# 
public virtual ImImage Process( 
   ImImage image
)
JScript 
public function Process( 
   image : ImImage
) : ImImage;
Managed Extensions for C++ 
public: virtual ImImage* Process( 
   ImImage* image
) 
C++/CLI 
public:
virtual ImImage^ Process( 
   ImImage^ image
) 

Parameters

image
ImImage To Process

Return Value

New ImImage

Remarks

A solid black border or a clean fade into the side of a page will be cleaned. As is typical with scanned images. If there is noise or texture on the side of the page or mixed in with the border it will not be cleaned. This function differentiates whether to crop or not based on the texture of the border. If the border has texture or excessive noise this function is not able to differentiate this from potential image or text information.

If the image does not have borders the Cleaned propertywill be false.

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;

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.