6.
To draw on the canvas, authors must first obtain a reference to a context using the ______________ method of the canvas interface element.

GetData

ToDataURL

GetContext

None of the mentioned

7.
The ___________ method must add the scaling transformation described by the arguments to the transformation matrix.

Scale(x, y)

Translate(x, y)

Rotate(angle)

None of the mentioned

8.
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?

StrokeRect(x, y, w, h)

ClearRect(x, y, w, h)

FillRect(x, y, w, h)

None of the mentioned

9.
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.

MeasureText()

ImageData()

DrawImage()

None of the mentioned

10.
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.

Fill()

Stroke()

Clip()

None of the mentioned

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

Fill()

Stroke()

Clip()

None of the mentioned

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

ClosePath()

BeginPath()

MoveTo(x, y)

None of the mentioned

0Shares
0
Scroll to Top