usingMaths.com
Demonstrating and showing pupils and students one application of Mathematics.







<< PreviousNext >>

Graphs like C# Drawing Components



Cartesian Plane

The Cartesian Plane is the usual graph surface we are taught in school.
It consists of the x and y axes.

In C#, drawing is done using the System.Drawing library.

With C#, drawing is usually done in the paint method of a window form or picture box.

However, there is a subtle difference between the way we use graphs and the C# windows form:
The y-axis of the C# windows form is measured from the top and increases as you move downwards.

Graph/Canvas  Comparism


Drawing on the C# Form

In C#, the Window's Form would represent something like a graph book; and this graph book is plotted or drawn on using code.

Create a new C# Windows Forms Application project ; call it Dymetric_CS.

Type out the adjoining C# algorithm to see what the windows form looks like.










<< PreviousNext >>