Examveda
Examveda

Which method is used to obtain the “drawing context” object ?

A. getContext()

B. getObject()

C. get()

D. getDrawing()

Answer: Option A

Solution(By Examveda Team)

Most of the Canvas drawing API is defined not on the canvas element itself, but instead on a “drawing context” object obtained with the getContext() method of the canvas.

Join The Discussion

Related Questions on Graphics and Rendering