Tag Archives: drawing

Use Microsoft Print to PDF to create a PDF file in C#

This example shows one way that you can make a C# program create a PDF file. It’s super easy. (I haven’t posted any easy examples for a while, so this one makes a refreshing change.) Selecting the Printer In a … Continue reading

Posted in drawing, graphics, printing | Tagged , , , , , , , , | 4 Comments

Use menu commands with shortcuts to save and restore user-drawn polygons in C# and WPF

The example Let the user edit polygons in WPF and C# shows how to let the user draw and edit polygons in WPF. This example shows how you can let the user save and restore those polygons. While I was … Continue reading

Posted in drawing, graphics, wpf | Tagged , , , , , , , , , , , , | 3 Comments

Pingback: Code Project post “Clipping Plane in WPF 3D”

The Code Project post Clipping Plane in WPF 3D by charles922 references a couple of my WPF 3D posts. His post explains several WPF 3D concepts including; Manger sponges (refers to my post Use a dictionary to draw a 3D … Continue reading

Posted in 3D, 3D graphics, algorithms, books, drawing, graphics, mathematics, wpf, XAML | Tagged , , , , , , , , , , , , , , | 4 Comments

Sprialize an image in C#

This example shows how to spiralize an image. By spiralize I mean shade pieces of the picture with different colors so the colored areas for a spiral as shown in the picture. This could be a difficult problem. Fortunately I’ve … Continue reading

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

Let the user edit polygons in WPF and C#

The post Let the user draw a polygon in WPF and C# shows how you can let the user draw polygons in a WPF application. This post shows how you can let the user edit them. Individually the program’s pieces … Continue reading

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

Let the user draw a polygon in WPF and C#

In a Windows Forms application, you can let the user draw a polygon by tracking mouse movement and redrawing the picture whenever necessary to draw the partially completed polygon. A WPF program normally does not do its own drawing. Instead … Continue reading

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

Draw many circles that intersect two points in C#

As I mentioned in my earlier post Connect two points with elliptical arcs in C#, an infinite number of circles (or ellipses) can pass through two points. This example draws some of them to produce an interesting pattern. This example … Continue reading

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

Connect two points with elliptical arcs in C#

As I mentioned in my earlier post Connect two points with arcs of midpoint circles in C#, two points alone cannot uniquely define a circle. An infinite number of circles (or ellipses) can pass through two points and therefore they … Continue reading

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

Connect two points with arcs of midpoint circles in C#

Two points alone cannot uniquely define a circle because an infinite number of circles can pass through two points and therefore they can be connected by an infinite number of arcs. If you add extra information, however, two points can … Continue reading

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

Improve the program that displays COVID-19 data for US states in C#

This post describes two improvements to the earlier example that displays COVID-19 data for US states. The first change is a basic software engineering improvement. The second displays daily changes in COVID-19 case, hospitalization, and death numbers. Software Engineering Notes … Continue reading

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