
Recent Posts

Recent Comments
 RodStephens on Generate a schedule for a round robin tournament in C#
 Display team names for a round robin tournament in C#  C# HelperC# Helper on Generate a schedule for a round robin tournament in C#
 jason on Generate a schedule for a round robin tournament in C#
 List languages that you can compile at runtime in C#  C# HelperC# Helper on Run userentered code in C#
 Save bitmap files in WPF and C#  C# HelperC# Helper on Set the pixels in a WPF bitmap in C#
Archives
 May 2018
 April 2018
 March 2018
 February 2018
 January 2018
 December 2017
 November 2017
 October 2017
 September 2017
 August 2017
 July 2017
 June 2017
 May 2017
 April 2017
 March 2017
 February 2017
 January 2017
 December 2016
 November 2016
 October 2016
 September 2016
 August 2016
 July 2016
 June 2016
 May 2016
 April 2016
 March 2016
 February 2016
 January 2016
 December 2015
 November 2015
 October 2015
 September 2015
 August 2015
 July 2015
 June 2015
 May 2015
 April 2015
 March 2015
 February 2015
 January 2015
 December 2014
 November 2014
 October 2014
 September 2014
 August 2014
 July 2014
 June 2014
 May 2014
 March 2014
 February 2014
 January 2014
 December 2013
 October 2013
 August 2013
 June 2013
 December 2012
 September 2012
 August 2012
 July 2012
 June 2012
 May 2012
 April 2012
 January 2012
 December 2011
 November 2011
 May 2011
 April 2011
 February 2011
 December 2010
Categories
 .NET
 3D
 3D graphics
 ADO.NET
 algorithms
 animation
 API
 arrays
 attributes
 audio
 books
 C#
 C# programming
 calculations
 challenges
 classes
 clipboard
 coding
 combinatorics
 console
 controls
 cryptography
 curve fitting
 database
 debugging
 dialogs
 directories
 Drag and Drop
 drawing
 drawings
 enums
 Event
 events
 example program
 Excel
 extension methods
 extensions
 files
 finance
 fonts
 formatting
 forms
 fractals
 ftp
 games
 GDI+
 generic
 geometry
 globalization
 graphics
 html
 IDE
 image processing
 inheritance
 interfaces
 internationalization
 internet
 interoperability
 LINQ
 lists
 localization
 mathematics
 memory
 menus
 MessageBox
 methods
 miscellany
 multimedia
 network
 Office
 OOP
 operators
 parsing
 performance
 phone
 PowerPoint
 printers
 printing
 productivity
 programs
 puzzles
 recursion
 reflection
 registry
 regular expressions
 serialization
 settings
 SQL
 stories
 strings
 syntax
 system
 threading
 tips
 tools
 transformations
 Uncategorized
 user interface
 variables
 VBA
 web
 Windows Forms programming
 WMI
 Word
 wpf
 XAML
 XML
Meta
Category Archives: drawing
Book Discussion Page: WPF 3d
This is a discussion page for my book WPF 3D, ThreeDimensional 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 3D, 3D graphics, algorithms, books, C#, C# programming, drawing, example, example program, graphics, mathematics, threedimensional graphics, Windows Forms programming, WPF, XAML
3 Comments
WPF 3d: Table of Contents
This is a brief summary of the table of contents for my book WPF 3D, ThreeDimensional 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 3D, 3D graphics, algorithms, books, C#, C# programming, drawing, example, example program, graphics, mathematics, threedimensional graphics, Windows Forms programming, WPF, XAML
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 algorithms, C#, C# programming, curves, draw circle, drawing, example, example program, graphs, mathematics, square curve, Windows Forms programming
4 Comments
Map device coordinates to world coordinates in C#
Sometimes it’s convenient to draw in one coordinate system (called world coordinates) and map those coordinates to the screen’s device coordinates. The example Map points between coordinate systems in C# shows how to do this in C#. For example, the … Continue reading
Display tooltips on a graph of an equation entered by the user in C#
This example draws a graph of an equation entered by the user and the displays a tooltip on it when you move the mouse over the graph. See the post Graph equations entered by the user in C# for information … Continue reading
Draw a picturefilled histogram in C#
The example Make a simple histogram in C# shows how to draw a histogram. This example shows how to fill the histogram’s bars with pictures. The following TileRectangle method fills a rectangle with an image. // Tile an area from … Continue reading
Tile a PictureBox in C#
If you set a form’s BackgroundImageLayout property Tile, then the control fills itself with copies of its background image. Strangely the PictureBox control does not have a corresponding Tile property. This example shows one way you can tile images on … Continue reading
Posted in drawing, graphics, image processing
Tagged C#, C# programming, drawing, example, example program, graphics, image processing, picture box, PictureBox, TextureBrush, tile, tile image, Windows Forms programming
Leave a comment
Draw the Weierstrass function in C#
The Weierstrass function was discovered by Karl Weierstrass in 1872. It’s an odd function that is continuous everywhere but differentiable nowhere. I’ll explain what that means shortly. Here’s the function: Here: The following two sections explain what it means to … Continue reading
Posted in algorithms, drawing, fractals, graphics, mathematics
Tagged algorithms, C#, C# programming, continuous function, differentiable function, discontinuous function, drawing, example, example program, fractals, graphics, mathematics, nondifferentiable function, Weierstrass curve, Weierstrass function, Windows Forms programming
Leave a comment
Recursively draw equations in C#
The basic idea for recursively drawing equations is simple. Well, sort of simple. Classes represent different kinds of equations. A particular class knows how to draw its kind of equation. It uses other classes to draw its pieces. For example, … Continue reading
Posted in algorithms, drawing, fonts, graphics, recursion
Tagged algorithms, C#, C# programming, draw equations, drawing, equations, example, example program, fonts, graphics, recursion, Windows Forms programming
2 Comments
Calculate where a line segment and an ellipse intersect in C#
Finding the intersection between a line segment and an ellipse requires a lot of mathematics. It’s not particularly hard mathematics, but if you’d rather skip it, you can use the following links to jump to the other parts of this … Continue reading
Posted in algorithms, drawing, geometry, graphics, mathematics
Tagged algorithms, C#, C# programming, drawing, ellipse, ellipse line intersection, ellipse/line intersection, example, example program, geometry, graphics, intersection, line, line ellipse intersection, line segment, line/ellipse intersection, mathematics, Windows Forms programming
5 Comments