1.

The ___________ method must add the scaling transformation described by the arguments to the transformation matrix.(a) scale(x, y)(b) translate(x, y)(c) rotate(angle)(d) skew(x,y)The question was asked in examination.This interesting question is from Client-Side Graphics with Canvas in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct answer is (a) scale(x, y)

The explanation is: HTML5 canvas provides scale(x, y) method which is USED to increase or DECREASE the units in our canvas GRID. The position (0, 0) is remaped in canvas by translate(x, y) method. If ONE want to rotate the current drawing then rotate(angle) method can be used.



Discussion

No Comment Found

Related InterviewSolutions