This property sets the coordinates of a rectangle on the image. This rectangle is used by the CutRectImage method or used to process an elliptical area on the image.

[Visual Basic]
Public Property Rect As System.Windows.Rect
[C#]
public System.Windows.Rect Rect {get; set;}

Property Value

A value of type System.Windows.Rect

Explanation

The Rect property sets the coordinates of a rectangle on the image. This rectangle is used by the CutRectImage method or used to process an elliptical area on the image.

The origin (0,0) for the coordinate space is at the top left. The Rect property can be set directly, for example,

     ImageKit1.Effect.Rect = new Rectangle(100,100,200,200)

will set an area on the image whose top left corner is at (100,100) and that has a height and width of 200 respectively. For more information, please refer to the System.Drawing.Rect.

If the ImageKit.Rect property is set, it is possible to pass this rectangle directly into the Rect property like this:

     ImageKit.Effect.Rect = ImageKit.Rect

The Rect property is used by the CutRectImage method or used to process an elliptical area on the image when the SelectMode property is set to EffectEllipse.

See Also

ImageKit.Effect Members | Newtone.ImageKit.Wpf.ImageKit

 

The ImageKit WPF is created by Newtone Corporation