Tag Archives: drawing

Animate maze solving, version 2

My earlier post Animate maze solving, version 1 uses a method that returns an enumeration to show the steps used to find a path through a maze. That method works but it uses a loop that includes calls to Thread.Sleep … Continue reading

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

Animate maze solving, version 1

The post Solve mazes in C# solves mazes very quickly, but it only shows you the final path from the start point to the end point. It might be nice to make a program to animate maze solving so you … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , | 1 Comment

Solve mazes in C#

This example shows how to solve mazes that were created by the example Make and draw a maze in C#. See that example for information about how to build a maze. Read the following sections to learn how to solve … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , | 1 Comment

Draw a horizontal compass in C#

This example shows how to draw the horizontal compass shown at the bottom of the picture on the right. On the surface this seems like a simple drawing exercise. It mostly is a drawing exercise, although it turned out to … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , | 1 Comment

Draw an image circle in C#

This example is somewhat similar to the post Draw an image spiral in C# except it draws an image circle instead of an image spiral. The key is the DrawImageCircle method, which draws a smaller image in a circle on … Continue reading

Posted in drawing, graphics, image processing, mathematics | Tagged , , , , , , , , , | 1 Comment

Draw a rounded polygon in C#

This post uses techniques described in my post Connect two line segments with a circular arc in C# to draw a rounded polygon. The earlier post uses mathematics to find a circular arc to join two line segments. This post … Continue reading

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

Make a hexagonal montage of pictures in C#

This example combines techniques from several earlier posts to make a hexagonal montage. It uses the techniques demonstrated in the post Draw a hexagonal grid in C# to define the grid and to make positions on the form two and … Continue reading

Posted in drawing, graphics, image processing, tools | Tagged , , , , , , , , , , , , , , | 1 Comment

Find drawn characters under the mouse in C#

The following examples find the positions of drawn characters in a string that is drawn by using the Graphics object’s DrawString method. Measure character positions in a drawn string in C# Measure character positions when drawing long strings in C# … Continue reading

Posted in algorithms, drawing, fonts, graphics, strings | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Clip an image to a polygon in C#

This example lets you select a polygon and then uses it to clip an image to it. It uses the technique described in my previous post Build a polygon selector class in C# to let you select the polygon. The … Continue reading

Posted in drawing, graphics, image processing | Tagged , , , , , , , , , | 1 Comment

Build a polygon selector class in C#

This example shows how to make a polygon selector class that makes it easy to let the user select a polygon. I call this kind of class that provides a service for another class a symbiont. In a symbiotic relationship, … Continue reading

Posted in classes, drawing, graphics | Tagged , , , , , , , , | 1 Comment