HTML Graphics


  1. The ____________ method must fill all the subpaths of the current path, using fillStyle, and using the non-zero winding number rule.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The path one defines is drawn by stroke() method. Any region/shape or size in canvas is clipped by clip(). The fill() method fills the current drawing (path). The default color is black. There is no method like get().


  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.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    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.



  1. The ____________ method must create a new clipping region by calculating the intersection of the current clipping region and the area described by the current path, using the non-zero winding number rule.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The path one defines is drawn by stroke() method. Any region/shape or size in canvas is clipped by clip(). The fill() method fills the current drawing (path). The default color is black. There is no method like get().


  1. Which method must clear the pixels in the specified rectangle that also intersects the current clipping region to a fully transparent black, erasing any previous image?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    StrokeRect(x, y, w, h) draws rectangle without filling it. The clearRect() method clears the specified pixels within a given rectangle. FillRect(x, y, w, h) method draws filled rectangle.



  1. Which of the following methods must empty the list of subpaths so that the context once again has zero subpaths?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    ClosePath() creates a path that starts from current point up to the starting point. The beginPath() method begins a path, or resets the current path. MoveTo(x, y) moves the point specified in canvas but without creating the line. There is nothing like endPath() in canvas.