Skip to content

Commit

Permalink
[e] (0) Move diagram for drawImage() up into the intro text.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3474 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 27, 2009
1 parent 6544aba commit 8002b7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
13 changes: 4 additions & 9 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -25019,7 +25019,10 @@ v4DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex

<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
Expand Down Expand Up @@ -25100,14 +25103,6 @@ v4DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex
<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
Expand Down
13 changes: 4 additions & 9 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -27369,7 +27369,10 @@ v4DVT (also check for '- -' bits in the part above) -->

<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
Expand Down Expand Up @@ -27471,14 +27474,6 @@ v4DVT (also check for '- -' bits in the part above) -->
<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
Expand Down

0 comments on commit 8002b7e

Please sign in to comment.