Category Archives: algorithms

Draw text on a circle in C#

This example uses some of the techniques described in the post Measure character positions when drawing long strings in C# to draw text on a circle. The previous post explains how to determine where the characters in a string will … Continue reading

Posted in algorithms, fonts, geometry, graphics, strings | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

List Dictionary keys and values in C#

A Dictionary object’s Keys property is a KeyCollection containing the dictionary’s keys. Similarly, its Values property is a ValueCollection containing the dictionary’s values. These collections are slightly different from the List objects that you probably use in your code. In … Continue reading

Posted in algorithms, controls, lists | Tagged , , , , , , , , , , , , | Leave a comment

Animate a point on a polar coordinate curve in C#

The example Graph a curve in polar coordinates in C# explained how to draw the flower-like curve on the right. Once you know how to draw such a curve, it’s not too hard to animate points moving along it. The … Continue reading

Posted in algorithms, animation, graphics, mathematics | Tagged , , , , , , , , , , , , , , , | Leave a comment

Combine images in rows and columns in C#

I just finished my latest book WPF 3d, Three-Dimensional Graphics with WPF and C# and I wanted to combine images showing samples from the book into a single image. You can use a program such as MS Paint to do … Continue reading

Posted in algorithms, drawing, graphics, image processing | Tagged , , , , , , , , , | 1 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 , , , , , , , , , , , , , , | 3 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

Graph a square curve in C#

This example shows how to graph a curve that draws a square. The basic idea isn’t as bizarre as you might think. You probably know that x2 + y2 = 1 is the equation for a circle. So what is … Continue reading

Posted in algorithms, drawing, mathematics | Tagged , , , , , , , , , , , | 4 Comments

Graph a curve in polar coordinates in C#

In Cartesian coordinates, a point is specified by X and Y values. In polar coordinates, a point is specified by r and θ where: r is the point’s radial distance from the origin θ is the angle that gives the … Continue reading

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