Section 25.39. CanvasRenderingContext2D.translate( ): translate the user coordinate system of the canvas


25.39. CanvasRenderingContext2D.translate( ): translate the user coordinate system of the canvas

25.39.1. Synopsis

 void translate(float dx, float dy) 

25.39.1.1. Arguments

dx, dy

The amounts to translate in the X and Y dimensions.

25.39.2. Description

translate( ) adds horizontal and vertical offsets to the transformation matrix of the canvas. The arguments dx and dy are added to all points in any subsequently defined paths.

25.39.3. See Also

CanvasRenderingContext2D.rotate( ), CanvasRenderingContext2D.scale( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net