Category Archives: wpf

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

Easily manipulate pixels in WPF and C#

After building the example Save bitmap files in WPF and C#, I couldn’t get it out of my head. Doing the math to set the correct bytes in a one-dimensional pixel array isn’t all that hard, but it is annoying … Continue reading

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

Use a custom dash pattern with WPF and XAML in C#

My post Render dashed lines in a WPF program using C# explains how a WPF program can use C# code to render lines with a custom dash pattern onto a bitmap. This post shows how to use a custom dash … Continue reading

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

Book Sample Pictures: WPF 3d

This page shows thumbnail images for my book WPF 3D, Three-Dimensional Graphics with WPF and C#. Click on a picture to see a full-sized version. [ Overview – Table of Contents – Questions and Discussion – Errata – Sample Pictures … Continue reading

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

Book Errata Page: WPF 3d

This is the errata page for my book WPF 3D, Three-Dimensional Graphics with WPF and C#. If you find mistakes, please post them here in the “Leave a Reply” box at the bottom of the page. I will moderate them … Continue reading

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

Book Discussion Page: WPF 3d

This is a discussion page for my book WPF 3D, Three-Dimensional Graphics with WPF and C#. Please post questions, thoughts, and suggestions here in the “Leave a Reply” box at the bottom of the page. I will moderate posts and … Continue reading

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

WPF 3d: Table of Contents

This is a brief summary of the table of contents for my book WPF 3D, Three-Dimensional Graphics with WPF and C#. Contents Introduction Part I. Getting Started Chapter 1. XAML Example Chapter 2. C# Example Chapter 3. Coordinates Chapter 4. … Continue reading

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

Make a 3D globe in WPF and C#

This example shows how you can draw a 3D globe. More generally it shows how you can make a three-dimensional textured sphere in WPF. The example Draw smooth spheres using WPF and C# shows how to make smooth colored spheres. … Continue reading

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