Monthly Archives: May 2019

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 | Tagged , , , , , , , , , , , , | Leave a comment

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 | Tagged , , , , , , , , , , , , | Leave a comment

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 | Tagged , , , , , , , , , | 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 | Tagged , , , , , , , , | Leave a comment

“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

Posted in 3D, 3D graphics, books, drawing, graphics, three-dimensional graphics | Tagged , , , , , , , , , , | 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 , | Leave a comment

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 | 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