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



Copies a portion of an image to create another image that is the size of the rectangle that you specify.

Object Model


Syntax

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

Remarks

After you call IRasterCommand.Run on a certain image, a new RasterImage will be created from the desired rectangle and will be put in the DestinationImage property.

This command duplicates the original image's palette, if one is required in the new image.

This command uses image coordinates to specify the area to be copied. Therefore, you must account for the RasterImage.ViewPerspective of the image. For information about image coordinates, refer to Accounting for View Perspective.

Inheritance Hierarchy

System.Object
   Leadtools.ImageProcessing.RasterCommand
      Leadtools.ImageProcessing.CopyRectangleCommand

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also