Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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

git-svn-id: http://svn.whatwg.org/webapps@6908 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 24, 2012
1 parent 098685e commit 5ca857f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 6 additions & 1 deletion complete.html
Expand Up @@ -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 &mdash; Last Updated 23 January 2012</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -37086,6 +37086,10 @@ <h6 id=images><span class=secno>4.8.11.1.10 </span>Images</h6>
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
Expand Down Expand Up @@ -98295,6 +98299,7 @@ <h3 class="no-num">Reflecting IDL attributes</h3>
Julian Reschke,
J&uuml;rgen Jeka,
Justin Lebar,
Justin Novosad,
Justin Schuh,
Justin Sinclair,
Kai Hendry,
Expand Down
7 changes: 6 additions & 1 deletion index
Expand Up @@ -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 &mdash; Last Updated 23 January 2012</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -37086,6 +37086,10 @@ v6DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex
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
Expand Down Expand Up @@ -98295,6 +98299,7 @@ if (s = prompt('What is your name?')) {
Julian Reschke,
J&uuml;rgen Jeka,
Justin Lebar,
Justin Novosad,
Justin Schuh,
Justin Sinclair,
Kai Hendry,
Expand Down
5 changes: 5 additions & 0 deletions source
Expand Up @@ -43246,6 +43246,10 @@ v6DVT (also check for '- -' bits in the part above) -->
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
Expand Down Expand Up @@ -115132,6 +115136,7 @@ if (s = prompt('What is your name?')) {
Julian Reschke,
J&uuml;rgen Jeka,
Justin Lebar,
Justin Novosad,
Justin Schuh,
Justin Sinclair,
Kai Hendry,
Expand Down

0 comments on commit 5ca857f

Please sign in to comment.