Tag Archives: text

Render dashed lines in a WPF program using C#

When you draw in WPF, you create a Pen object. You can set that object’s DashStyle to make the pen draw dashed or dotted lines. The following code shows how this example draws the second line from the top. Pen … Continue reading

Posted in drawing, geometry, graphics, wpf, XAML | Tagged , , , , , , , , , , , , , , , , , , , , | 1 Comment

Draw backwards text in C#

This example draws backwards text in a PictureBox. You could use similar techniques to draw backward text on a form, printout, bitmap file, or other drawing surface. When the program starts, the following code executes. It draws the text into … Continue reading

Posted in fonts, graphics, strings | Tagged , , , , , , , , , , | 1 Comment