Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

To draw on the canvas, authors must first obtain a reference to a context using the ______________ method of the canvas interface element.

a) getImageData
b) toDataURL
c) getContext
d) restore

Answer: c
Explanation: The method getImageData(), returns an imageData that copies pixel data for a specified thing in canvas. ContextType is a DOMString containing the context identifier defining the drawing context associated to the canvas.

Join The Discussion