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



Specifies the Rectangle to which the image will be cropped.

Syntax

Visual Basic (Declaration) 
Public Property Rectangle As Rectangle
Visual Basic (Usage)Copy Code
Dim instance As CropCommand
Dim value As Rectangle
 
instance.Rectangle = value
 
value = instance.Rectangle
C# 
public Rectangle Rectangle {get; set;}
C++/CLI 
public:
property Rectangle Rectangle {
   Rectangle get();
   void set (Rectangle value);
}

Return Value

The Rectangle to which the image will be cropped.

Example

For an example, refer to IRasterCommand.

Remarks

The value of this property should be included fully within the image dimenion otherwise an exception will be thrown.

Tha value of this property should be in image coordinates. Therefore, you must account for the RasterImage.ViewPerspective of the image. For information about image coordinates, refer to Accounting for View Perspective.

Requirements

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

See Also