# Monthly Archives: May 2019

## Book Review: Mission Python: Code a Space Adventure Game!

Mission Python: Code a Space Adventure Game! By Sean McManus 2018, No Starch Press, 280 pages, \$20.36 This book explains how you can build a space-themed game in Python. The book’s description implies, but doesn’t actually come out and say, … Continue reading

Posted in books | | Comments Off on Book Review: Mission Python: Code a Space Adventure Game!

## 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 | | 3 Comments

## Make an intuitive extension method to draw an elliptical arc in WPF and C#

In my previous post Draw an elliptical arc in WPF and XAML, I explained how WPF makes you define an elliptical arc. Their method almost makes sense if you want draw an arc as part of a path. however, if … Continue reading

Posted in drawing, geometry, graphics, mathematics, wpf, XAML | | 2 Comments

## Draw an elliptical arc in WPF and XAML

This example shows how to use XAML code to draw an elliptical arc in a WPF. The following sections explain how to specify an elliptical arc and how to draw one in XAML. Specifying an Elliptical Arc WPF provides several … Continue reading

Posted in drawing, geometry, graphics, mathematics, wpf, XAML | | Comments Off on Draw an elliptical arc in WPF and XAML

## Make drawing extension methods in WPF and C#

This example shows how to make a few handy extension methods for drawing in WPF. Drawing in WPF is at best awkward and at worst downright painful. For example, the following XAML code draws a rectangle. <Grid> <Canvas Name=”canDrawing”> <Rectangle … Continue reading

Posted in drawing, extension methods, graphics, wpf, XAML | | 2 Comments

## Make an image containing shadowed text in WPF and C#

Recently I wanted an image containing shadowed text similar to the following to put on my new Favorite Books page. It’s fairly easy to make this kind of text in Microsoft Word and then save an image of it in … Continue reading

Posted in graphics, image processing | | Comments Off on Make an image containing shadowed text in WPF and C#

## “WPF 3d” is now available for Kindle

My book WPF 3d: Three-Dimensional Graphics with WPF and C# is now available in the Kindle Store. I’m not completely thrilled with the way it was converted for Kindle (there are some formatting errors), but it should be usable. Here … Continue reading

| | 4 Comments

## New page: Favorite Books

I’ve started a favorite books page. Go there if you are curious to see the kinds of books I like to read for fun. This is only a small sample of my favorites, but it should give you some suggestions. … Continue reading

Posted in books | Tagged , | Comments Off on New page: Favorite Books

## Use transparency when drawing with anti-aliasing in C#

Anti-aliasing makes drawn lines look smoother on a raster image such as a bitmap or on the screen. Transparency allows you to place an image on top of another image so parts of the underlying image show through. Unfortunately, when … Continue reading

Posted in drawing, graphics, image processing | | 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 | | 2 Comments