Tag Archives: Paint

Draw and move polygons snapping them to a grid in C#

This example lets the user draw and move polygons snapping them to a grid. See the example Let the user draw polygons, move them, and add points to them in C# for information on how the program lets the user … Continue reading

Posted in algorithms, drawing, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , , , , | 6 Comments

Let the user draw polygons, move them, and add points to them in C#

This example lets the user draw polygons, move them, and add points to them. It’s an extension of the example Let the user draw and move polygons in C#. See that example for a description of most of this program’s … Continue reading

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

Let the user draw and move polygons in C#

This example lets the user draw and move polygons. It builds on the example Let the user draw polygons in C#. The program uses MouseDown, MouseMove, and MouseUp event handlers to let the user draw and interact with the polygons. … Continue reading

Posted in algorithms, drawing, graphics | Tagged , , , , , , , , , , , , , , , | 18 Comments

Let the user draw polygons in C#

This example shows how you can let the user draw polygons with the mouse. It represents each polygon as a list of points. It stores all of the finished polygons in a list of lists of points named Polygons, which … Continue reading

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