This method draws an ellipse.

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

Parameters

rect

The System.Windows.Rect structure that defines the bounding rectangle for the ellipse.

Return Value

Returns True if successful, otherwise returns False.

Explanation

The DrawEllipse method draws an ellipse. To draw an ellipse, set appropriate values in the PenWidth, ForeColor, ForeColorOpacity, BackColor, BackColorOpacity, and Fill properties. Set the System.Windows.Rect structure that defines the bounding rectangle for the ellipse in the DrawEllipse's rect parameter. When the DrawEllipse method is executed, the ellipse will be drawn. If a portion of the ellipse lies outside the ImageKit control and the LimitAnnotationPosition property or LimitDrawPosition property are true, the ellipse will be resized to fit  completely within the ImageKit control.

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

The DrawEllipse method can be used without setting the EditKind property to KindOfEdit.Ellipse.

It is also possible to draw an ellipse by setting the EditKind property to KindOfEdit.Ellipse 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