Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
CropCommand Class
See Also  Members  
Leadtools.ImageProcessing Namespace : CropCommand Class




Crops the image, resulting in an image that is the size of the specified rectangle.

Syntax

Visual Basic (Declaration) 
Public Class CropCommand 
   Inherits RasterCommand
   Implements IRasterCommand 
Visual Basic (Usage)Copy Code
Dim instance As CropCommand
C# 
public class CropCommand : RasterCommand, IRasterCommand  
Managed Extensions for C++ 
public __gc class CropCommand : public RasterCommand, IRasterCommand  
C++/CLI 
public ref class CropCommand : public RasterCommand, IRasterCommand  

Example

This example trims 100 pixels off of each side of an image.

Remarks

If a region is defined for the image, the region is also cropped if necessary.

For more information, refer to Processing an Image.

Inheritance Hierarchy

System.Object
   Leadtools.ImageProcessing.RasterCommand
      Leadtools.ImageProcessing.CropCommand

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