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.(a) fill()(b) stroke()(c) clip()(d) get()I got this question in quiz.The origin of the question is Client-Side Graphics with Canvas in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct choice is (c) clip()

To elaborate: 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().



Discussion

No Comment Found

Related InterviewSolutions