25.36. CanvasRenderingContext2D.scale( ): scale the user coordinate system of the canvas25.36.1. Synopsisvoid scale(float sx, float sy) 25.36.1.1. Arguments
25.36.2. Descriptionscale( ) adds a scale transformation to the current transformation matrix of the canvas. Scaling is done with independent horizontal and vertical scaling factors. For example, passing the values 2.0 and 0.5 causes subsequently drawn paths to be twice as wide and half as high as they would otherwise have been. Specifying a negative value for sx causes X coordinates to be flipped across the Y axis, and a negative value of sy causes Y coordinates to be flipped across the X axis. 25.36.3. See AlsoCanvasRenderingContext2D.rotate( ), CanvasRenderingContext2D.translate( ) |