Tag Archives: WPF

Draw a smooth closed curve in WPF and C#

The post Draw a smooth curve in WPF and C# explains how you can create a series of Bézier curves to smoothly connect a group of points. This example shows how to modify that one to create a smooth closed … Continue reading

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

Draw a smooth curve in WPF and C#

In Windows Forms programming, you can draw a smooth curve by using the Graphics object’s DrawCurve method. For some reason, Microsoft did not provide the ability to draw a smooth curve in WPF. Fortunatrely, you can use a series of … Continue reading

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

Segmented Turning Helper, Version 3

John Di Stefano has released version 3 of this free tool Segmented Turning Helper. The program helps you design segmented turning projects such as turned bowls and vases. Here’s the basic description of the tool. Segmented Turning Helper assists you … Continue reading

Posted in 3D, 3D graphics, books, drawing, graphics, wpf | Tagged , , , , , , , , , , , , | Leave a comment

Pingback: Code Project post “Orbital Mechanics Introduction, Part 2”

The Code Project post Orbital Mechanics Introduction, Part 2 by charles922 uses some code from my WPF 3D posts. His program lets you experiment with the following orbital parameters: Eccentricity – the eccentricity of the orbit’s ellipse. Inclination – the … Continue reading

Posted in 3D, 3D graphics, algorithms, books, drawing, graphics, mathematics, wpf, XAML | Tagged , , , , , , , , , , , , , , | Leave a comment

Save and restore lines drawn by a WPF line editor in C#

The example Make a WPF line editor C# shows how to make a program that lets the user draw lines on a WPF canvas. This example is similar but it also allows you to save and restore drawings. The WPF … Continue reading

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

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, graphics | Tagged , , , , , , , , , , , , , , | Leave a comment

Graph points in WPF and C#

This example extends the previous example Draw a graph in WPF and C# to draw ellipses marking the data sets’ points. See that example for an explanation of how most of the program works. The following code shows how the … Continue reading

Posted in algorithms, drawing, geometry, graphics, mathematics, wpf | Tagged , , , , , , , , , , , , , , , , , , | 2 Comments

Display a progress bar with text in WPF and C#

As is so often the case in WPF, the solution is simple after you spend a few hours figuring out what controls to use. This example uses a normal Grid control that holds a StackPanel. The following code shows the … Continue reading

Posted in controls, user interface, wpf, XAML | Tagged , , , , , , , , , , , , , | 1 Comment

Save WriteableBitmap images in multiple formats in WPF and C#

The post Easily save a WriteableBitmap in WPF and C# describes an extension method that makes it easy to save a WriteableBitmap object into a PNG file, but what if you want to save the image in some other format … Continue reading

Posted in extension methods, graphics, image processing, wpf, XAML | Tagged , , , , , , , , , , , , , , , , , | 1 Comment

Easily save a WriteableBitmap in WPF and C#

In my post Save bitmap files in WPF and C# I lamented (okay, whined about) the cumbersomeness of saving a WriteableBitmap into a file in WPF. Fortunately there’s a way you can make it easier. Simply add an extension method … Continue reading

Posted in extension methods, graphics, image processing, wpf, XAML | Tagged , , , , , , , , , , , , , , , | 1 Comment