Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
Draw circle at the end of line

What I have tried:

..........................................
Posted
Updated 29-Jun-16 3:50am
Comments
Sergey Alexandrovich Kryukov 28-Jun-16 11:07am    
This is not even a question. If you know how to draw a line, what prevents you from drawing a circle?
What have you tried so far?
And the question makes no sense without telling us your application type and what you are using for drawing.
—SA

For some additional material on the subject read this CodeProject tutorial on drawing a line with a circle or rectangle at the end: [tut4] Draw Lines with Circle and Rectangle End[^]

For additional information on drawing read some of the other tutorials by that author.
 
Share this answer
 
Try:
C#
private void myDrawingPanel_Paint(object sender, PaintEventArgs e)
    {
    Graphics g = e.Graphics;
    g.DrawLine(Pens.Black, 10, 10, 100, 100);
    g.DrawEllipse(Pens.Blue, 9, 9, 2, 2);
    g.DrawEllipse(Pens.Red, 99, 99, 2, 2);
    }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900