Upravit

Sdílet prostřednictvím


DrawingContext.DrawEllipse Method

Definition

Draws an ellipse.

Overloads

DrawEllipse(Brush, Pen, Point, Double, Double)

Draws an ellipse with the specified Brush and Pen.

DrawEllipse(Brush, Pen, Point, AnimationClock, Double, AnimationClock, Double, AnimationClock)

Draws an ellipse with the specified Brush and Pen and applies the specified animation clocks.

DrawEllipse(Brush, Pen, Point, Double, Double)

Draws an ellipse with the specified Brush and Pen.

public:
 abstract void DrawEllipse(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Point center, double radiusX, double radiusY);
public abstract void DrawEllipse (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Point center, double radiusX, double radiusY);
abstract member DrawEllipse : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Point * double * double -> unit
Public MustOverride Sub DrawEllipse (brush As Brush, pen As Pen, center As Point, radiusX As Double, radiusY As Double)

Parameters

brush
Brush

The brush with which to fill the ellipse. This is optional, and can be null. If the brush is null, no fill is drawn.

pen
Pen

The pen with which to stroke the ellipse. This is optional, and can be null. If the pen is null, no stroke is drawn.

center
Point

The location of the center of the ellipse.

radiusX
Double

The horizontal radius of the ellipse.

radiusY
Double

The vertical radius of the ellipse.

Remarks

The brush and the pen can both be null. If the brush is null, then no fill is performed. If the pen is null, then no stoke is performed. If both the pen and the brush are null, then the drawing is not visible.

Applies to

DrawEllipse(Brush, Pen, Point, AnimationClock, Double, AnimationClock, Double, AnimationClock)

Draws an ellipse with the specified Brush and Pen and applies the specified animation clocks.

public:
 abstract void DrawEllipse(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Point center, System::Windows::Media::Animation::AnimationClock ^ centerAnimations, double radiusX, System::Windows::Media::Animation::AnimationClock ^ radiusXAnimations, double radiusY, System::Windows::Media::Animation::AnimationClock ^ radiusYAnimations);
public abstract void DrawEllipse (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Point center, System.Windows.Media.Animation.AnimationClock centerAnimations, double radiusX, System.Windows.Media.Animation.AnimationClock radiusXAnimations, double radiusY, System.Windows.Media.Animation.AnimationClock radiusYAnimations);
abstract member DrawEllipse : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Point * System.Windows.Media.Animation.AnimationClock * double * System.Windows.Media.Animation.AnimationClock * double * System.Windows.Media.Animation.AnimationClock -> unit
Public MustOverride Sub DrawEllipse (brush As Brush, pen As Pen, center As Point, centerAnimations As AnimationClock, radiusX As Double, radiusXAnimations As AnimationClock, radiusY As Double, radiusYAnimations As AnimationClock)

Parameters

brush
Brush

The brush with which to fill the ellipse. This is optional, and can be null. If the brush is null, no fill is drawn.

pen
Pen

The pen with which to stroke the ellipse. This is optional, and can be null. If the pen is null, no stroke is drawn.

center
Point

The location of the center of the ellipse.

centerAnimations
AnimationClock

The clock with which to animate the ellipse's center position, or null for no animation. This clock must be created from an AnimationTimeline that can animate Point objects.

radiusX
Double

The horizontal radius of the ellipse.

radiusXAnimations
AnimationClock

The clock with which to animate the ellipse's x-radius, or null for no animation. This clock must be created from an AnimationTimeline that can animate Double objects.

radiusY
Double

The vertical radius of the ellipse.

radiusYAnimations
AnimationClock

The clock with which to animate the ellipse's y-radius, or null for no animation. This clock must be created from an AnimationTimeline that can animate Double objects.

Remarks

The brush and the pen can both be null. If the brush is null, then no fill is performed. If the pen is null, then no stoke is performed. If both the pen and the brush are null, then the drawing is not visible.

Applies to