Hi,
I am drawing a circle using ellipse because there is no explicit command for this.
Kindly tell me what is the centre of circle and what is radius in the above command?Code:pDC->Ellipse(CRect(70, 170, 300, 400));
Zulfi.
Printable View
Hi,
I am drawing a circle using ellipse because there is no explicit command for this.
Kindly tell me what is the centre of circle and what is radius in the above command?Code:pDC->Ellipse(CRect(70, 170, 300, 400));
Zulfi.
The length of the radius is half the size of one of the sides of the square. The given CRect is a square of length 230 so the radius of the circle is 115.
The centre of the circle is the centre of the bounding CRect which is (70 + 115, 170 + 115) or (185, 285).
Thanks for your useful guidance.
Zulfi.