Q43
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?
A.
strokeRect(x, y, w, h)
B.
clearRect(x, y, w, h)
AnswerC.
fillRect(x, y, w, h)
D.
none of the mentioned
Answer: Option B
Solution
Answer: Option B
Solution:
The clearRect() method clears the specified pixels within a given rectangle.