This method draws a round rectangle.

[Visual Basic] Public Function DrawRoundRectangle(rect As System.Windows.Rect) As Boolean
[C#]public bool DrawRoundRectangle(System.Windows.Rect rect);

Parameters

rect

The System.Windows.Rect structure designating where the round rectangle is drawn.

Return Value

Returns True if successful, otherwise returns False.

Explanation

The DrawRoundRectangle method draws a round rectangle. To draw a round rectangle, set appropriate values in the PenWidth, ForeColor, ForeColorOpacity, BackColor, BackColorOpacity, Fill, and RoundRectangleRadius properties. Set the values for the coordinate location and size of the round rectangle in the DrawRoundRectangle method's rect parameter. When the DrawRoundRectangle method is executed, the round rectangle will be drawn. If a portion of the round rectangle lies outside the ImageKit control and the LimitAnnotationPosition property or LimitDrawPosition property are true, the round rectangle will be resized to fit completely within the ImageKit control.

To delete the round rectangle drawn with the DrawRoundRectangle method, right click the object and display the context menu, the select "Undo" or execute the Undo method.

The DrawRoundRectangle method can be used without setting the EditKind property to KindOfEdit.RoundRectangle.

It is also possible to draw a round rectangle by setting the EditKind property to KindOfEdit.RoundRectangle then, on the base image displayed in the ImageKit control, use the mouse. For more details, please refer to the Edit Overview.

See also

ImageKit.Edit Members | Newtone.ImageKit.Wpf.ImageKit

 

The ImageKit WPF is created by Newtone Corporation