-
To draw on the canvas, authors must first obtain a reference to a context using the ______________ method of the canvas interface element.
-
- getContext
- getImageData
- restore
- toDataURL
- None of these
Correct Option: A
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.