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

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

A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf Uses a different parameter representation than DrawEllipse().
public static DrawEllipseCentered ( this bmp, int xc, int yc, int xr, int yr, Color color ) : void
bmp this The WriteableBitmap.
xc int The x-coordinate of the ellipses center.
yc int The y-coordinate of the ellipses center.
xr int The radius of the ellipse in x-direction.
yr int The radius of the ellipse in y-direction.
color Color The color for the line.
Результат void
        public static void DrawEllipseCentered(this WriteableBitmap bmp, int xc, int yc, int xr, int yr, Color color)
        {
            var col = ConvertColor(color);
            bmp.DrawEllipseCentered(xc, yc, xr, yr, col);
        }

Same methods

WriteableBitmapExtensions::DrawEllipseCentered ( this bmp, int xc, int yc, int xr, int yr, int color ) : void