Author Archives: RodStephens

About RodStephens

Rod Stephens is a software consultant and author who has written more than 30 books and 250 magazine articles covering C#, Visual Basic, Visual Basic for Applications, Delphi, and Java.

Winners of the book drawing

Congratulations to the following winners of the book drawing for copies of The Modern C# Challenge. Josh Williams Tony Ropson Richard Moss Mark Williamson William Cruz Stephen Igor Kuzmishov Paolo Mike Griffiths Francisco Javier L√≥pez Manzano If you didn’t win, … Continue reading

Posted in algorithms, books | Tagged , , , , , , , , | Leave a comment

Why you should study algorithms (plus a free book drawing)

There are several reasons why you should study algorithms. I’m going to talk about four of them. (If you want to skip to the bottom, you can read about the drawing I’m having in the next few days for one … Continue reading

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

Book Drawing: The Modern C# Challenge

I’m holding a drawing for 10 copies of my latest book, The Modern C# Challenge. Here’s the short blurb about this book. The Modern C# Challenge Become an expert C# programmer by solving interesting programming problems This book includes 100 … Continue reading

Posted in algorithms, books | Tagged , , , , , , , , | 1 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

Convert camel case into underscore case in C#

Lately I’ve been doing a lot of C#-to-python conversion. The style in C# is to use camel case where you capitalize the first letter each each word after the first one in a variable’s name as in thisIsAVariableName. The style … Continue reading

Posted in programs, strings | Tagged , , , , , , , , | 2 Comments

Create sized oval images in C#

Almost as soon as I had finished the example Create oval images in C#, I realized that it wouldn’t work for my purposes. I wanted to make oval images for several people. Unfortunately, that program didn’t let you make images … Continue reading

Posted in drawing, image processing | Tagged , , , , , , , , , , , | Leave a comment

Use WPF 3d techniques to draw a snowman with WPF and C#

This example shows how to use the tools and techniques described in my book WPF 3d, Three-Dimensional Graphics with WPF and C# to draw a three-dimensional snowman. I won’t go into all of the details because there are a whole … Continue reading

Posted in 3D, 3D graphics, books, drawing, graphics, XAML | 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

Create oval images in C#

This example lets you create oval images with transparent backgrounds. It includes some features such as menus that let you load and save files. Download the example to see those details. The more interesting part is the code that creates … Continue reading

Posted in drawing, image processing | Tagged , , , , , , , , , , | 6 Comments

Draw a randomly colored Sierpinski octagon in C#

This example draws a randomly colored Sierpinski octagon. It’s basically the same as the example Draw a randomly colored Sierpinski pentagon in C# except it draws an octagon instead of a pentagon. See that example for most of the details. … Continue reading

Posted in algorithms, fractals, graphics, recursion | Tagged , , , , , , , , , , | Leave a comment