[html5] r7724 - [e] (0) Try to clarify off-canvas drawing with drawImage. Affected topics: Canva [...]
whatwg at whatwg.org
whatwg at whatwg.org
Sat Feb 16 19:08:56 PST 2013
Author: ianh
Date: 2013-02-16 19:08:55 -0800 (Sat, 16 Feb 2013)
New Revision: 7724
Modified:
complete.html
index
source
Log:
[e] (0) Try to clarify off-canvas drawing with drawImage.
Affected topics: Canvas, HTML
Modified: complete.html
===================================================================
--- complete.html 2013-02-13 20:21:19 UTC (rev 7723)
+++ complete.html 2013-02-17 03:08:55 UTC (rev 7724)
@@ -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 — Last Updated 13 February 2013</h2>
+ <h2 class="no-num no-toc">Living Standard — 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,9 +37138,14 @@
<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>
<li><p>If one of the <var title="">sw</var> or <var title="">sh</var> arguments is zero, abort
@@ -101983,6 +101988,7 @@
Jason Lustig,
Jason White,
Jasper Bryant-Greene,
+ Jasper St. Pierre,
Jatinder Mann,
Jed Hartman,
Jeff Balogh,
Modified: index
===================================================================
--- index 2013-02-13 20:21:19 UTC (rev 7723)
+++ index 2013-02-17 03:08:55 UTC (rev 7724)
@@ -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 — Last Updated 13 February 2013</h2>
+ <h2 class="no-num no-toc">Living Standard — 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,9 +37138,14 @@
<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>
<li><p>If one of the <var title="">sw</var> or <var title="">sh</var> arguments is zero, abort
@@ -101983,6 +101988,7 @@
Jason Lustig,
Jason White,
Jasper Bryant-Greene,
+ Jasper St. Pierre,
Jatinder Mann,
Jed Hartman,
Jeff Balogh,
Modified: source
===================================================================
--- source 2013-02-13 20:21:19 UTC (rev 7723)
+++ source 2013-02-17 03:08:55 UTC (rev 7724)
@@ -43368,9 +43368,14 @@
(<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>
<li><p>If one of the <var title="">sw</var> or <var title="">sh</var> arguments is zero, abort
@@ -119212,6 +119217,7 @@
Jason Lustig,
Jason White,
Jasper Bryant-Greene,
+ Jasper St. Pierre,
Jatinder Mann,
Jed Hartman,
Jeff Balogh,
More information about the Commit-Watchers
mailing list