/// <summary> /// Adds a new, colored arc to the display list. /// </summary> /// <param name="arc">Arc to add.</param> /// <param name="color">Color of arc.</param> /// <param name="thickness">Thickness of arc.</param> public void AddArc(Arc arc, Color color, int thickness) { if (m_disposed) { throw new ObjectDisposedException("This CustomDisplay instance has been disposed and cannot be modified"); } if (!arc.IsValid) { return; } CDU_Arc cdu = new CDU_Arc(); cdu.m_arc = arc; cdu.m_color = Color.FromArgb(255, color); cdu.m_thickness = thickness; m_arcs.Add(cdu); m_clip.Union(arc.BoundingBox()); }