1.

When the _____________ method is passed an animated image as its image argument, the user agent must use the poster frame of the animation, or, if there is no poster frame, the first frame of the animation.(a) measureText()(b) imageData()(c) drawImage()(d) setImage()The question was asked by my college professor while I was bunking the class.This intriguing question originated from Client-Side Graphics with Canvas topic in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer» RIGHT option is (C) drawImage()

The explanation: The width of specified text present in an object is given by measureText() METHOD. The drawImage() method draws an IMAGE, CANVAS, or video onto the canvas. ImageData() method provides image data in pixels in canvas.


Discussion

No Comment Found

Related InterviewSolutions