Skip to content

Draw Dynamically circle inside Picture Box

Karan Singh

Asked Nov 27, 2015, 5:56 AM EST1 answer
Share
LinkedInX
Please Help me , 
how to create circle  in picture box Dynamically.and in this Circle i want also create another circle inside the circle .without Picturebox_Paint event?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    You should be able to do this using the System.Drawing.Graphics.DrawEllipse method. The following MSDN article shows how you can draw a circle inside a square:
    https://msdn.microsoft.com/en-us/library/sfwzeec0%28v=vs.90%29.aspx
    But what exactly do you mean by "Dynamically"?
    If you mean you want to do this at runtime according to users actions, the details depend on the source image? And whether you want to keep the old circles or not?

    Note that if you are looking for more advance drawing features, I am currently using Annotations features from Leadtools imaging programming SDK. I didn't use the System.Drawing.Graphics features because I want to draw the objects on a different layer over the image (the object will not be part of the image data). You can find more details here:
    http://support.leadtools.com/SupportPortal/CS/forums/44616/ShowPost.aspx
    0