Tag Archives: algorithms

Give an image an improved transparent background in C#

This example lets you make some pixels in an image part of a transparent background. Use the File menu to open an image file. When you click on the original image on the left, the program converts pixels that have … Continue reading

Posted in algorithms, graphics, image processing | Tagged , , , , , , , , , , , | Leave a comment

Find hexes a certain distance from a target hex in C#

My post Draw a hexagonal grid in C# shows how you can draw a grid made up of hexagons. This post shows how you can find the hexes that are a given distance N from a target hex. Basic Idea … Continue reading

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

New Book: Essential Algorithms, Second Edition: A Practical Approach to Computer Algorithms Using Python and C#

I’m happy to announce my latest book, Essential Algorithms, Second Edition: A Practical Approach to Computer Algorithms Using Python and C#. This is a greatly revised and expanded version of the popular first edition. Here are some links that you … Continue reading

Posted in algorithms, books | Tagged , , , , , , , , | 1 Comment

Graph equations while preserving aspect ratio in WPF and C#

The previous example, Graph equations entered by the user in WPF and C# shows how to graph an equation entered by the user. The user must also enter the coordinate bounds that the program should use. For example, in the … Continue reading

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

WPF 3d: Three-Dimensional Graphics with WPF and C#

If you haven’t checked out my book, WPF 3d: Three-Dimensional Graphics with WPF and C#, please take a quick look either on my web page or on Amazon. If you have a copy of the book, please post a review! … Continue reading

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

Graph equations entered by the user in WPF and C#

This example uses key techniques described in several examples, mostly the following two: Use transformations to draw a graph in WPF and C# Graph equations entered by the user in C# The following two sections describe the key techniques taken … Continue reading

Posted in algorithms, drawing, graphics, mathematics, reflection, wpf | Tagged , , , , , , , , , , , , , | 1 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

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