/// <summary> /// Draws a circle filled. /// </summary> public void DrawFilled(C2DCircle Circle, Graphics graphics, Brush brush) { C2DRect Rect = new C2DRect(); Circle.GetBoundingRect(Rect); this.ScaleAndOffSet(Rect.BottomRight); this.ScaleAndOffSet(Rect.TopLeft); graphics.FillEllipse(brush, (int)Rect.TopLeft.x, (int)Rect.BottomRight.y, (int)Rect.Width(), (int)Rect.Height()); }
/// <summary> /// Draws a circle /// </summary> public void Draw(C2DCircle Circle, Graphics graphics, Pen pen) { C2DRect Rect = new C2DRect(); Circle.GetBoundingRect(Rect); this.ScaleAndOffSet(Rect.BottomRight); this.ScaleAndOffSet(Rect.TopLeft); graphics.DrawEllipse(pen, (int)Rect.TopLeft.x, (int)Rect.BottomRight.y, (int)Rect.Width(), (int)Rect.Height()); }