Tag Archives: drawing

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

Create a Contain FillMode for filling polygons in C#

The example Understand fill modes in C# showed how the Alternate and Winding FillMode values affect the result when you fill a self-intersecting polygon. In many cases, the Alternate FillMode leaves holes in a self-intersecting polygon while the Winding FillMode … Continue reading

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

Crop scaled images to specific sizes in C#

This example lets you crop scaled images to specific sizes in C#. The post Crop images to specific sizes in C# lets you drag a rectangle of a specified size around on an image to pick the part of the … Continue reading

Posted in drawing, graphics, image processing, tools | Tagged , , , , , , , , , , , | 2 Comments

Understand fill modes in C#

C# drawing routines have two fill modes. In Windows Forms they are called Alternate and Winding. In WPF they are called Odd/Even and Non-Zero. This example lets you draw polygons and see how the two fill modes determine which points … Continue reading

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

Display COVID-19 data for US states in C#

The example Graph world total COVID-19 cases, deaths, and recoveries in C# lets you view and compare COVID-19 data for countries around the world. This example lets you compare data for the US states and territories. I asked in previous … Continue reading

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

Quick COVID-19 update

Recently President Trump claimed that the United States and Germany were tied for the fewest COVID-19 deaths per capita in the world. The example Graph world total COVID-19 cases, deaths, and recoveries in C# allows you to check that claim … Continue reading

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

Graph world total COVID-19 cases, deaths, and recoveries in C#

My previous COVID-19 posts examined cases, deaths, and recoveries for different countries. I recently wanted to look at the world-wide totals, so I made this modification. Making changes to handle the world totals separately would have been a lot of … Continue reading

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