[html5] r6908 - [giow] (0) Define what to do when the source rectangle of a drawImage() call is [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jan 24 12:35:19 PST 2012


Author: ianh
Date: 2012-01-24 12:35:18 -0800 (Tue, 24 Jan 2012)
New Revision: 6908

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Define what to do when the source rectangle of a drawImage() call is out of bounds (before, it resulted in banding, which seems unsatisfactory).
Affected topics: Canvas, HTML

Modified: complete.html
===================================================================
--- complete.html	2012-01-23 23:26:37 UTC (rev 6907)
+++ complete.html	2012-01-24 20:35:18 UTC (rev 6908)
@@ -240,7 +240,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 23 January 2012</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 24 January 2012</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -37086,6 +37086,10 @@
   four points (<var title="">dx</var>, <var title="">dy</var>),
   (<span title=""><var title="">dx</var>+<var title="">dw</var></span>, <var title="">dy</var>), (<span title=""><var title="">dx</var>+<var title="">dw</var></span>, <span title=""><var title="">dy</var>+<var title="">dh</var></span>), (<var title="">dx</var>, <span title=""><var title="">dy</var>+<var title="">dh</var></span>).</p>
 
+  <p>When the source rectangle is outside the source image, it must be
+  clipped to the source image, and the destination rectangle must be
+  clipped in the same proportion.</p>
+
   <p>When <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code> is
   invoked, the region of the image specified by the source rectangle
   must be painted on the region of the canvas specified by the
@@ -98295,6 +98299,7 @@
   Julian Reschke,
   Jürgen Jeka,
   Justin Lebar,
+  Justin Novosad,
   Justin Schuh,
   Justin Sinclair,
   Kai Hendry,

Modified: index
===================================================================
--- index	2012-01-23 23:26:37 UTC (rev 6907)
+++ index	2012-01-24 20:35:18 UTC (rev 6908)
@@ -240,7 +240,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 23 January 2012</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 24 January 2012</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -37086,6 +37086,10 @@
   four points (<var title="">dx</var>, <var title="">dy</var>),
   (<span title=""><var title="">dx</var>+<var title="">dw</var></span>, <var title="">dy</var>), (<span title=""><var title="">dx</var>+<var title="">dw</var></span>, <span title=""><var title="">dy</var>+<var title="">dh</var></span>), (<var title="">dx</var>, <span title=""><var title="">dy</var>+<var title="">dh</var></span>).</p>
 
+  <p>When the source rectangle is outside the source image, it must be
+  clipped to the source image, and the destination rectangle must be
+  clipped in the same proportion.</p>
+
   <p>When <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code> is
   invoked, the region of the image specified by the source rectangle
   must be painted on the region of the canvas specified by the
@@ -98295,6 +98299,7 @@
   Julian Reschke,
   Jürgen Jeka,
   Justin Lebar,
+  Justin Novosad,
   Justin Schuh,
   Justin Sinclair,
   Kai Hendry,

Modified: source
===================================================================
--- source	2012-01-23 23:26:37 UTC (rev 6907)
+++ source	2012-01-24 20:35:18 UTC (rev 6908)
@@ -43246,6 +43246,10 @@
   title="">dh</var></span>), (<var title="">dx</var>, <span title=""><var
   title="">dy</var>+<var title="">dh</var></span>).</p>
 
+  <p>When the source rectangle is outside the source image, it must be
+  clipped to the source image, and the destination rectangle must be
+  clipped in the same proportion.</p>
+
   <p>When <code title="dom-context-2d-drawImage">drawImage()</code> is
   invoked, the region of the image specified by the source rectangle
   must be painted on the region of the canvas specified by the
@@ -115132,6 +115136,7 @@
   Julian Reschke,
   Jürgen Jeka,
   Justin Lebar,
+  Justin Novosad,
   Justin Schuh,
   Justin Sinclair,
   Kai Hendry,




More information about the Commit-Watchers mailing list