Tag Archives: line segments

Draw, move, and delete line segments in VB.NET

This progra lets you draw, move, and delete line segments from a drawing. It’s a Visual Basic .NET version of the example Draw, move, and delete line segments in C# made by request. Click and drag to draw line segments. … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Save and restore line drawings in C#

The example Draw and move line segments in C# shows how to build a simple line editor. This example adds the ability to save and restore drawings. The first step is to save all of the drawing information in a … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , , , , , , , , , , | 5 Comments

Make a WPF line editor C#

This example is a “simple” WPF line editor that lets you add, move, and delete Line objects. The example Draw, move, and delete line segments in C# is a Windows Forms application that does something. The WPF version is a … Continue reading

Posted in algorithms, drawing, graphics, wpf | Tagged , , , , , , , , , , , , , , , , , , , | 23 Comments

Draw, move, and delete line segments in C#

This example shows how to make a drawing program that lets you draw, move, and delete line segments. It’s based on the example Draw and move line segments in C#. See that example for information about how the program lets … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , , | 23 Comments

See where a line intersects a conic section in C#

This example shows how you can see where a line intersects a conic section. You can use the more general method described in the post See where two conic sections intersect in C#. This example takes advantage of the simpler … Continue reading

Posted in algorithms, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , , , , | Leave a comment

Let the user draw and move line segments snapping their positions to a snap grid in C#

See the example Draw and move line segments in C# for basic information about the program. This example does the same thing, but lets you snap segments and end points to a grid. When the drawing PictureBox is resized or … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , | 3 Comments

Draw and move line segments in C#

This example lets the user draw and move line segments. It lets you perform three different operations depending on what is below the mouse. When the mouse is over a segment, the cursor changes to a hand. Then you can … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , | 29 Comments