W3C home > Mailing lists > Public > public-html-diffs@w3.org > July 2009

hixie: Move diagram for drawImage() up into the intro text. (whatwg r3474)

From: poot <cvsmail@w3.org>
Date: Tue, 28 Jul 2009 08:15:57 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090727231557.63D9D2BBFA@toro.w3.mag.keio.ac.jp>
hixie: Move diagram for drawImage() up into the intro text. (whatwg
r3474)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2676&r2=1.2677&f=h
http://html5.org/tools/web-apps-tracker?from=3473&to=3474

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2676
retrieving revision 1.2677
diff -u -d -r1.2676 -r1.2677
--- Overview.html	27 Jul 2009 23:11:13 -0000	1.2676
+++ Overview.html	27 Jul 2009 23:15:31 -0000	1.2677
@@ -22091,7 +22091,10 @@
 
    <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
@@ -22172,10 +22175,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
Received on Monday, 27 July 2009 23:16:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:07 GMT