[html5] r3474 - [e] (0) Move diagram for drawImage() up into the intro text.
whatwg at whatwg.org
whatwg at whatwg.org
Mon Jul 27 16:15:27 PDT 2009
Author: ianh
Date: 2009-07-27 16:15:25 -0700 (Mon, 27 Jul 2009)
New Revision: 3474
Modified:
index
source
Log:
[e] (0) Move diagram for drawImage() up into the intro text.
Modified: index
===================================================================
--- index 2009-07-27 23:11:07 UTC (rev 3473)
+++ index 2009-07-27 23:15:25 UTC (rev 3474)
@@ -25019,8 +25019,11 @@
<dd>
- <p>Draws the given image onto the canvas. The arguments are interpreted as per the diagram below.</p>
+ <p>Draws the given image onto the canvas. The arguments are
+ interpreted as follows:</p>
+ <p><img alt="The sx and sy parameters give the x and y coordinates of the source rectangle; the sw and sh arguments give the width and height of the source rectangle; the dx and dy give the x and y coordinates of the destination rectangle; and the dw and dh arguments give the width and height of the destination rectangle." src=images/drawImage.png></p>
+
<p>If the first argument isn't an <code><a href=#the-img-element>img</a></code>,
<code><a href=#the-canvas-element>canvas</a></code>, or <code><a href=#video>video</a></code> element, throws a
<code><a href=#type_mismatch_err>TYPE_MISMATCH_ERR</a></code> exception. If the image is not
@@ -25100,14 +25103,6 @@
<p class=note>This specification does not define the algorithm to
use when scaling the image, if necessary.</p>
- </div>
-
- <p><img alt="" src=images/drawImage.png></p> <!-- no alt="" text
- since the image is just repeating what was stated in the previous
- paragraph. -->
-
- <div class=impl>
-
<p class=note>When a canvas is drawn onto itself, the drawing
model requires the source to be copied before the image is drawn
back onto the canvas, so it is possible to copy parts of a canvas
Modified: source
===================================================================
--- source 2009-07-27 23:11:07 UTC (rev 3473)
+++ source 2009-07-27 23:15:25 UTC (rev 3474)
@@ -27369,8 +27369,11 @@
<dd>
- <p>Draws the given image onto the canvas. The arguments are interpreted as per the diagram below.</p>
+ <p>Draws the given image onto the canvas. The arguments are
+ interpreted as follows:</p>
+ <p><img src="images/drawImage.png" alt="The sx and sy parameters give the x and y coordinates of the source rectangle; the sw and sh arguments give the width and height of the source rectangle; the dx and dy give the x and y coordinates of the destination rectangle; and the dw and dh arguments give the width and height of the destination rectangle."></p>
+
<p>If the first argument isn't an <code>img</code>,
<code>canvas</code>, or <code>video</code> element, throws a
<code>TYPE_MISMATCH_ERR</code> exception. If the image is not
@@ -27471,14 +27474,6 @@
<p class="note">This specification does not define the algorithm to
use when scaling the image, if necessary.</p>
- </div>
-
- <p><img src="images/drawImage.png" alt=""></p> <!-- no alt="" text
- since the image is just repeating what was stated in the previous
- paragraph. -->
-
- <div class="impl">
-
<p class="note">When a canvas is drawn onto itself, the drawing
model requires the source to be copied before the image is drawn
back onto the canvas, so it is possible to copy parts of a canvas
More information about the Commit-Watchers
mailing list