This is a simple example of how the drawing program works using Delphi.
Use the following variables
rad: Double;
i, a, b: Integer;
The following drawing instructions were used in the lesson:
canvas.MoveTo( , );
canvas.Pen.Color
canvas.LineTo (a, b);
Use the following mathematical relationships:
Radian account:
rad: = i * (pi / 180);
Calculate the points of the circuit using sin:
a: = x + round (sin (rad) * spinedit1.Value);
Calculation of the points of the circuit using cos:
b: = y-round (cos (rad) * spinedit1.Value);
-------------------------------------------------- ---------------------------
#oussama_professional Tutorial in Delphi
-------------------------------------------------- ---------------------------
♥ ☺☺☺☺ ♥
If you liked the video, do not forget to subscribe to the channel and activate the bell and admire the video to follow each new
♥ ☺☺☺☺ ♥.
If he has any query or any questions, leave it in a comment I will answer as soon as possible
♥ ☺☺☺☺ ♥.