[html5] r1164 - /

whatwg at whatwg.org whatwg at whatwg.org
Thu Jan 17 17:01:52 PST 2008


Author: ianh
Date: 2008-01-17 17:01:47 -0800 (Thu, 17 Jan 2008)
New Revision: 1164

Modified:
   index
   source
Log:
[gow] (2) Color spaces and <canvas>

Modified: index
===================================================================
--- index	2008-01-18 00:16:16 UTC (rev 1163)
+++ index	2008-01-18 01:01:47 UTC (rev 1164)
@@ -717,6 +717,9 @@
            <li><a href="#drawing"><span class=secno>3.14.11.1.11.
             </span>Drawing model</a>
           </ul>
+
+         <li><a href="#color"><span class=secno>3.14.11.2. </span>Color
+          spaces and color correction</a>
         </ul>
 
        <li><a href="#the-map"><span class=secno>3.14.12. </span>The
@@ -17464,6 +17467,27 @@
   <p class="big-issue">Well, one day.</p>
 -->
 
+  <h5 id=color><span class=secno>3.14.11.2. </span>Color spaces and color
+   correction</h5>
+
+  <p>The <code><a href="#canvas">canvas</a></code> APIs must perform colour
+   correction at only two points: when rendering images with their own gamma
+   correction information onto the canvas (e.g. using the <code
+   title=dom-context-2d-drawImage><a href="#drawimage">drawImage()</a></code>
+   method with an <code><a
+   href="#htmlimageelement">HTMLImageElement</a></code> object, to convert
+   the image to the color space used by the canvas), and when rendering the
+   actual canvas bitmap to the output device or to an external resource (e.g.
+   using the <code title=dom-canvas-toDataURL><a
+   href="#todataurl">toDataURL()</a></code> method).
+
+  <p>Thus, colors used to draw shapes onto the canvas will exactly match
+   colors obtained through the <code title=dom-context-2d-getImageData><a
+   href="#getimagedata">getImageData()</a></code> method.
+
+  <p class=big-issue>(is this right?) <!-- XXX --> The canvas must use the
+   sRGB color space. <a href="#refsSRGB">[SRGB]</a>
+
   <h4 id=the-map><span class=secno>3.14.12. </span>The <dfn
    id=map><code>map</code></dfn> element</h4>
 

Modified: source
===================================================================
--- source	2008-01-18 00:16:16 UTC (rev 1163)
+++ source	2008-01-18 01:01:47 UTC (rev 1164)
@@ -15052,6 +15052,7 @@
   <!-- XXX add xrefs in the list above -->
 
 
+
 <!--
   <h5 id="3d">The 3D context</h5>
 
@@ -15060,7 +15061,29 @@
 
 
 
+  <h5>Color spaces and color correction</h5>
 
+  <p>The <code>canvas</code> APIs must perform colour correction at
+  only two points: when rendering images with their own gamma
+  correction information onto the canvas (e.g. using the <code
+  title="dom-context-2d-drawImage">drawImage()</code> method with an
+  <code>HTMLImageElement</code> object, to convert the image to the
+  color space used by the canvas), and when rendering the actual
+  canvas bitmap to the output device or to an external resource
+  (e.g. using the <code
+  title="dom-canvas-toDataURL">toDataURL()</code> method).</p>
+
+  <p>Thus, colors used to draw shapes onto the canvas will exactly
+  match colors obtained through the <code
+  title="dom-context-2d-getImageData">getImageData()</code>
+  method.</p>
+
+  <p class="big-issue">(is this right?) <!-- XXX --> The canvas must
+  use the sRGB color space. <a href="#refsSRGB">[SRGB]</a></p>
+
+
+
+
   <h4>The <dfn><code>map</code></dfn> element</h4>
 
   <dl class="element">




More information about the Commit-Watchers mailing list