Graphics in Delphi
Answers are for parents and teachers.
1
What are the width and height of Rectangle(20, 40, 170, 120)?
150 and 80
2
What is the side of Rectangle(100-12*i, 100-12*i, 100+12*i, 100+12*i) at i = 7?
168
3
What are the semi-axes of Ellipse(0, 0, 100, 60)?
50 and 30
4
Write the red colour with RGB and the statement that makes the point (10, 20) red through Pixels.
Image1.Canvas.Pixels[10, 20] := RGB(255, 0, 0);
5
Why is x written first and y second in Pixels[x, y]? Explain with the coordinate system.
From the upper left corner the horizontal distance (x) is given first and then the vertical distance (y).