-
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?
-
- fillRect(x, y, w, h)
- removeRect(x,y,w,h)
- clearRect(x, y, w, h)
- strokeRect(x, y, w, h)
- None of these
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.