Skip to main content

GraphicsCache.DrawEllipse(Int32, Int32, Int32, Int32, Color, Int32) Method

Draws an ellipse defined by a bounding rectangle specified by the rectangle upper-left corner coordinates, a height, and a width.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public void DrawEllipse(
    int x,
    int y,
    int width,
    int height,
    Color color,
    int penWidth
)

Parameters

Name Type Description
x Int32

An Int32 value that is the x-coordinate of the bounding rectangle’s upper-left corner.

y Int32

An Int32 value that is the y-coordinate of the bounding rectangle’s upper-left corner.

width Int32

An Int32 value that is the bounding rectangle width.

height Int32

An Int32 value that is the bounding rectangle height.

color Color

An ellipse color.

penWidth Int32

An Int32 value that specifies the ellipse line thickness.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DrawEllipse(Int32, Int32, Int32, Int32, Color, Int32) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also