/// <summary> /// Adds a circle to the path. /// </summary> /// <param name="center">The location of the center of the circle.</param> /// <param name="radius">The radius of the circle in pixels.</param> /// <param name="clockwise">Specifies if the circle will be drawn clockwise. The direction might affect the result since the shapes are rendered using the non-zero winding rule.</param> public void AddCircle(PointF center, float radius, bool clockwise) { polygons.Add(PolygonFactory.FromCircle(center, radius, clockwise)); }
/// <summary> /// Fills the specified circle with a color. /// </summary> /// <param name="color">The fill color.</param> /// <param name="center">The location of the center of the circle.</param> /// <param name="radius">The radius of the circle in pixels.</param> /// <param name="clockwise">Specifies if the circle will be drawn clockwise. The direction might affect the result since the shapes are rendered using the non-zero winding rule.</param> public void FillCircle(Color color, PointF center, float radius, bool clockwise) { FillPolygonCore(nextID++, color, PolygonFactory.FromCircle(center, radius, clockwise)); }