System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawEllipse C# (CSharp) Метод

DrawEllipse() публичный статический Метод

A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf x2 has to be greater than x1 and y2 has to be greater than y1.
public static DrawEllipse ( this bmp, int x1, int y1, int x2, int y2, Color color ) : void
bmp this The WriteableBitmap.
x1 int The x-coordinate of the bounding rectangle's left side.
y1 int The y-coordinate of the bounding rectangle's top side.
x2 int The x-coordinate of the bounding rectangle's right side.
y2 int The y-coordinate of the bounding rectangle's bottom side.
color Color The color for the line.
Результат void
        public static void DrawEllipse(this WriteableBitmap bmp, int x1, int y1, int x2, int y2, Color color)
        {
            var col = ConvertColor(color);
            bmp.DrawEllipse(x1, y1, x2, y2, col);
        }

Same methods

WriteableBitmapExtensions::DrawEllipse ( this bmp, int x1, int y1, int x2, int y2, int color ) : void