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





Glossary Item Box

Removes the border areas from an image.

Object Model

CropBorderCommand Class

Syntax

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

Remarks

This command will cut the black borders off the image. The following code crops the borders on the current image in the viewer control.
       DTI.ImageMan.Commands.CropBorderCommand crop = new DTI.ImageMan.Commands.CropBorderCommand();
    viewer1.Images.CurrentImage = crop.Process(viewer1.Images.CurrentImage);

Example

The following code crops the borders on the current image in the viewer control.
C#Copy Code
DTI.ImageMan.Commands.CropBorderCommand crop = new DTI.ImageMan.Commands.CropBorderCommand();
   viewer1.Images.CurrentImage = crop.Process(viewer1.Images.CurrentImage);

Inheritance Hierarchy

System.Object
   DTI.ImageMan.Commands.CropBorderCommand

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.