Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which API is used to draw a circle ?

  • A.Circle ( )
  • B.Ellipse ( )
  • C.Round Rect ( )
  • D.Pie ( )

Answer: B

In the Windows GDI the circle is drawn with the Ellipse() function, by giving a bounding square whose width and height are equal. There is no function in the API called Circle(), so the first option is wrong.

RoundRect() draws a rectangle with rounded corners, and Pie() draws a wedge cut from an ellipse. The key gives Ellipse(), the function that draws a circle when its box is square.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.