- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 10 Jun 2008 22:28:46 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv9759
Modified Files:
Overview.html
Log Message:
define the rounding behaviour of createImageData() to be like that of getID() and putID(). (whatwg r1739)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.927
retrieving revision 1.928
diff -u -d -r1.927 -r1.928
--- Overview.html 10 Jun 2008 21:32:37 -0000 1.927
+++ Overview.html 10 Jun 2008 22:28:43 -0000 1.928
@@ -20274,10 +20274,19 @@
<pre>context.putImageData(context.getImageData(x, y, w, h), x, y);</pre>
- <p>...for any value of <var title="">x</var> and <var title="">y</var>. In
- other words, while user agents may round the arguments of the two methods
- so that they map to device pixel boundaries, any rounding performed must
- be performed consistently for both the <code
+ <p>...for any value of <var title="">x</var> and <var title="">y</var>, and
+ the following two calls:
+
+ <pre>context.createImageData(w, h);
+context.getImageData(0, 0, w, h);</pre>
+
+ <p>...must return <code><a href="#imagedata">ImageData</a></code> objects
+ with the same dimensions, for any value of <var title="">w</var> and <var
+ title="">h</var>. In other words, while user agents may round the
+ arguments of these methods so that they map to device pixel boundaries,
+ any rounding performed must be performed consistently for all of the <code
+ title=dom-context-2d-getImageData><a
+ href="#getimagedata">createImageData()</a></code>, <code
title=dom-context-2d-getImageData><a
href="#getimagedata">getImageData()</a></code> and <code
title=dom-context-2d-putImageData><a
Received on Tuesday, 10 June 2008 22:29:22 UTC