The challenge here is to generate a technically and visually interesting image that is created only from lines and/or polylines.
Please do not submit a "bitmap converter", which only draws image points with short lines. If you need curved lines in your output, use a polyline to approximate such smooth curves!
The template application 092lines from the repository grcis serves as the basis of this project. This is a simple application in which you are supposed to implement the method Lines.Draw() which is responsible for calculating the output image. One can enter the desired resolution bitmap output and other parameters through a text form field.
The result is automatically displayed on the screen, and can be saved to disk in PNG format.
When calling Lines.Draw(), the following parameters are passed: a Canvas object c to which all your output has to be directed, and a free parameter text string param, which you can use to transmit additional useful information to the application. This is optional, though: the parameter param does not have to be used.
Initialisation of parameters: in order to have all relevant code nicely grouped in a single location, you can initialise your application parameters in the function InitParams(). It is called during application start-up.
In the last parameter field out string name please write your full name (as well as in the comments on the first line of the source file). This will make it easier to perform automatic evaluations of the results.
As solution of the problem, you have to send us the file Lines.cs (and only that). For this assignment, you can also add a successful final image that the program generates.
Hand in the assignment until: 21. 11. 2021
Basic: 6 points, plus a potential bonus of 6 points.
Visual Studio project: 092lines.
Modify and hand in the source file: Lines.cs
As a comment in the first line, please include your name!
Copyright (C) 2010-2021 J. Pelikán & V. Tázlar, last change: 2021-10-31 23:48:20 +0100 (Sun, 31 Oct 2021)