Browse files

[e] (0) Try to clarify off-canvas drawing with drawImage.

Affected topics: Canvas, HTML

git-svn-id: http://svn.whatwg.org/webapps@7724 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 8920d4b commit 99a489658ecfcd2eb8576f9396caf5854995f59f @Hixie Hixie committed Feb 17, 2013
Showing with 26 additions and 8 deletions.
  1. +9 −3 complete.html
  2. +9 −3 index
  3. +8 −2 source
View
12 complete.html
@@ -248,7 +248,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 &mdash; Last Updated 13 February 2013</h2>
+ <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 17 February 2013</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>
@@ -37138,8 +37138,13 @@ <h6 id=drawing-images><span class=secno>4.8.11.2.14 </span>Drawing images</h6>
<p>The destination rectangle is the rectangle whose corners are the 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 the source rectangle is outside the source image, the source rectangle must be clipped
+ to the source image and the destination rectangle must be clipped in the same proportion.</p>
+
+ <p class=note>When the destination rectangle is outside the destination image (the
+ <a href=#scratch-bitmap>scratch bitmap</a>), the pixels that land outside the <a href=#scratch-bitmap>scratch bitmap</a> are
+ discarded, as if the destination was an infinite canvas whose rendering was clipped to the
+ dimensions of the <a href=#scratch-bitmap>scratch bitmap</a>.</p>
</li>
@@ -101983,6 +101988,7 @@ <h2 class=no-num id=references>References</h2><!--REFS-->
Jason Lustig,
Jason White,
Jasper Bryant-Greene,
+ Jasper St. Pierre,
Jatinder Mann,
Jed Hartman,
Jeff Balogh,
View
12 index
@@ -248,7 +248,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 &mdash; Last Updated 13 February 2013</h2>
+ <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 17 February 2013</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>
@@ -37138,8 +37138,13 @@ v6DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex
<p>The destination rectangle is the rectangle whose corners are the 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 the source rectangle is outside the source image, the source rectangle must be clipped
+ to the source image and the destination rectangle must be clipped in the same proportion.</p>
+
+ <p class=note>When the destination rectangle is outside the destination image (the
+ <a href=#scratch-bitmap>scratch bitmap</a>), the pixels that land outside the <a href=#scratch-bitmap>scratch bitmap</a> are
+ discarded, as if the destination was an infinite canvas whose rendering was clipped to the
+ dimensions of the <a href=#scratch-bitmap>scratch bitmap</a>.</p>
</li>
@@ -101983,6 +101988,7 @@ if (s = prompt('What is your name?')) {
Jason Lustig,
Jason White,
Jasper Bryant-Greene,
+ Jasper St. Pierre,
Jatinder Mann,
Jed Hartman,
Jeff Balogh,
View
10 source
@@ -43368,8 +43368,13 @@ v6DVT (also check for '- -' bits in the part above) -->
(<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 the source rectangle is outside the source image, the source rectangle must be clipped
+ to the source image and the destination rectangle must be clipped in the same proportion.</p>
+
+ <p class="note">When the destination rectangle is outside the destination image (the
+ <span>scratch bitmap</span>), the pixels that land outside the <span>scratch bitmap</span> are
+ discarded, as if the destination was an infinite canvas whose rendering was clipped to the
+ dimensions of the <span>scratch bitmap</span>.</p>
</li>
@@ -119212,6 +119217,7 @@ if (s = prompt('What is your name?')) {
Jason Lustig,
Jason White,
Jasper Bryant-Greene,
+ Jasper St. Pierre,
Jatinder Mann,
Jed Hartman,
Jeff Balogh,

0 comments on commit 99a4896

Please sign in to comment.