drawing – Draw an Arc using mouse click in c# – Education Career Blog

Also i need to be able to draw arcs in user defined locations. My current code only lets me put it in one location in my picturebox. Here is my code:

            if (DrawShape == 3)
            {
                g.Clear(Color.Transparent);
                g.DrawImage(StoredImage, 0, 0);
                g.DrawArc(Pens.Indigo, pictureBox1.Size, e.Location.X - MousePosition.X,e.Location.Y - MousePosition.Y);
             }

Thanks

,

When you do g.Clear() it clears whatever is in the picture box. Remove that line and you should be able to draw more.

Leave a Comment