Section 25.32. CanvasRenderingContext2D.rect( ): add a rectangle subpath to the path


25.32. CanvasRenderingContext2D.rect( ): add a rectangle subpath to the path

25.32.1. Synopsis

 void rect(float x, float y,           float width, float height) 

25.32.1.1. Arguments

x, y

The coordinates of the upper-left corner of the rectangle.


width, height

The dimensions of the rectangle.

25.32.2. Description

This method adds a rectangle to the path. This rectangle is in a subpath of its own and is not connected to any other subpaths in the path. When this method returns, the current position is (0,0).

25.32.3. See Also

CanvasRenderingContext2D.fillRect( ), CanvasRenderingContext2D.strokeRect( )




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