Home / CSE / HTML- CS :: Discussion

Discussion :: HTML- CS

  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?

  2. A.

     strokeRect(x, y, w, h)

    B.

     clearRect(x, y, w, h)

    C.

     fillRect(x, y, w, h)

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The clearRect() method clears the specified pixels within a given rectangle.


Be The First To Comment