[html5] r7112 - [giow] (0) Make imageSmoothingEnabled apply to patterns too. Affected topics: Canvas

whatwg at whatwg.org whatwg at whatwg.org
Thu May 31 15:36:56 PDT 2012


Author: ianh
Date: 2012-05-31 15:36:55 -0700 (Thu, 31 May 2012)
New Revision: 7112

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Make imageSmoothingEnabled apply to patterns too.
Affected topics: Canvas

Modified: complete.html
===================================================================
--- complete.html	2012-05-30 23:42:43 UTC (rev 7111)
+++ complete.html	2012-05-31 22:36:55 UTC (rev 7112)
@@ -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 — Last Updated 30 May 2012</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 31 May 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>
@@ -613,10 +613,11 @@
          <li><a href=#hit-regions><span class=secno>4.8.11.1.13 </span>Hit regions</a></li>
          <li><a href=#pixel-manipulation><span class=secno>4.8.11.1.14 </span>Pixel manipulation</a></li>
          <li><a href=#compositing><span class=secno>4.8.11.1.15 </span>Compositing</a></li>
-         <li><a href=#shadows><span class=secno>4.8.11.1.16 </span>Shadows</a></li>
-         <li><a href=#drawing-model><span class=secno>4.8.11.1.17 </span>Drawing model</a></li>
-         <li><a href=#best-practices><span class=secno>4.8.11.1.18 </span>Best practices</a></li>
-         <li><a href=#examples><span class=secno>4.8.11.1.19 </span>Examples</a></ol></li>
+         <li><a href=#image-smoothing><span class=secno>4.8.11.1.16 </span>Image smoothing</a></li>
+         <li><a href=#shadows><span class=secno>4.8.11.1.17 </span>Shadows</a></li>
+         <li><a href=#drawing-model><span class=secno>4.8.11.1.18 </span>Drawing model</a></li>
+         <li><a href=#best-practices><span class=secno>4.8.11.1.19 </span>Best practices</a></li>
+         <li><a href=#examples><span class=secno>4.8.11.1.20 </span>Examples</a></ol></li>
        <li><a href=#color-spaces-and-color-correction><span class=secno>4.8.11.2 </span>Color spaces and color correction</a></li>
        <li><a href=#security-with-canvas-elements><span class=secno>4.8.11.3 </span>Security with <code>canvas</code> elements</a></ol></li>
      <li><a href=#the-map-element><span class=secno>4.8.12 </span>The <code>map</code> element</a></li>
@@ -35405,6 +35406,9 @@
   // compositing
            attribute double <a href=#dom-context-2d-globalalpha title=dom-context-2d-globalAlpha>globalAlpha</a>; // (default 1.0)
            attribute DOMString <a href=#dom-context-2d-globalcompositeoperation title=dom-context-2d-globalCompositeOperation>globalCompositeOperation</a>; // (default source-over)
+
+  // image smoothing
+           attribute boolean <a href=#dom-context-2d-imagesmoothingenabled title=dom-context-2d-imageSmoothingEnabled>imageSmoothingEnabled</a>; // (default true)
 <!--
   // v7 we've also received requests for:
   - turning off antialiasing to avoid seams when patterns are painted next to each other
@@ -35459,7 +35463,6 @@
   <a href=#textmetrics>TextMetrics</a> <a href=#dom-context-2d-measuretext title=dom-context-2d-measureText>measureText</a>(DOMString text);
 
   // drawing images
-           attribute boolean <a href=#dom-context-2d-imagesmoothingenabled title=dom-context-2d-imageSmoothingEnabled>imageSmoothingEnabled</a>; // (default true)
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>((<a href=#htmlimageelement>HTMLImageElement</a> or <a href=#htmlcanvaselement>HTMLCanvasElement</a> or <a href=#htmlvideoelement>HTMLVideoElement</a>) image, double dx, double dy);
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>((<a href=#htmlimageelement>HTMLImageElement</a> or <a href=#htmlcanvaselement>HTMLCanvasElement</a> or <a href=#htmlvideoelement>HTMLVideoElement</a>) image, double dx, double dy, double dw, double dh);
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>((<a href=#htmlimageelement>HTMLImageElement</a> or <a href=#htmlcanvaselement>HTMLCanvasElement</a> or <a href=#htmlvideoelement>HTMLVideoElement</a>) image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh);
@@ -37788,14 +37791,17 @@
 
     <p>If the original image data is a bitmap image, the value painted
     at a point in the area of the repetitions is computed by filtering
-    the original image data. The user agent may use any filtering
-    algorithm (for example bilinear interpolation or
-    nearest-neighbor). When the filtering algorithm requires a pixel
-    value from outside the original image data, it must instead use
-    the value from wrapping the pixel's coordinates to the original
-    image's dimensions. (That is, the filter uses 'repeat' behavior,
-    regardless of the value of <var title="">repetition</var>.)
-    <!-- drawImage() has a similar paragraph with different rules -->
+    the original image data. If the <code title=dom-context-2d-imageSmoothingEnabled><a href=#dom-context-2d-imagesmoothingenabled>imageSmoothingEnabled</a></code>
+    attribute is set to true, then the user agent may use any
+    filtering algorithm (for example bilinear interpolation or
+    nearest-neighbor). If the <code title=dom-context-2d-imageSmoothingEnabled><a href=#dom-context-2d-imagesmoothingenabled>imageSmoothingEnabled</a></code>
+    attribute is set to false, the image must be rendered using
+    nearest-neighbor interpolation. When such a filtering algorithm
+    requires a pixel value from outside the original image data, it
+    must instead use the value from wrapping the pixel's coordinates
+    to the original image's dimensions. (That is, the filter uses
+    'repeat' behavior, regardless of the value of <var title="">repetition</var>.)
+    <!-- drawImage() has similar paragraphs with different rules -->
 
    </li>
 
@@ -38701,19 +38707,6 @@
 
    </dd>
 
-   <dt><var title="">context</var> . <code title=dom-context-2d-imageSmoothingEnabled><a href=#dom-context-2d-imagesmoothingenabled>imageSmoothingEnabled</a></code> [ = <var title="">value</var> ]</dt>
-
-   <dd>
-
-    <p>Returns whether the <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code> method will
-    attempt to smooth the image if it has to rescale it (as opposed to
-    just rendering the image with "big pixels").</p>
-
-    <p>Can be set, to change whether images are smoothed (true) or not
-    (false).</p>
-
-   </dd>
-
   </dl><div class=impl>
 
   <p>If not specified, the <var title="">dw</var> and <var title="">dh</var> arguments must default to the values of <var title="">sw</var> and <var title="">sh</var>, interpreted such that
@@ -38826,12 +38819,6 @@
   <a href=#clipping-region>clipping region</a>, and <a href=#dom-context-2d-globalcompositeoperation title=dom-context-2d-globalCompositeOperation>global composition
   operators</a>.</p>
 
-  <p>The <dfn id=dom-context-2d-imagesmoothingenabled title=dom-context-2d-imageSmoothingEnabled><code>imageSmoothingEnabled</code></dfn>
-  attribute, on getting, must return the last value it was set to. On
-  setting, it must be set to the new value. When the
-  <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object is create, the
-  attribute must be set to true.</p>
-
   </div>
 
 
@@ -39971,9 +39958,34 @@
 
 
 
+  <h6 id=image-smoothing><span class=secno>4.8.11.1.16 </span>Image smoothing</h6>
 
-  <h6 id=shadows><span class=secno>4.8.11.1.16 </span><dfn>Shadows</dfn></h6>
+  <dl class=domintro><dt><var title="">context</var> . <code title=dom-context-2d-imageSmoothingEnabled><a href=#dom-context-2d-imagesmoothingenabled>imageSmoothingEnabled</a></code> [ = <var title="">value</var> ]</dt>
 
+   <dd>
+
+    <p>Returns whether pattern fills and the <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code> method will
+    attempt to smooth images if they have to rescale them (as opposed
+    to just rendering the images with "big pixels").</p>
+
+    <p>Can be set, to change whether images are smoothed (true) or not
+    (false).</p>
+
+   </dd>
+
+  </dl><div class=impl>
+
+  <p>The <dfn id=dom-context-2d-imagesmoothingenabled title=dom-context-2d-imageSmoothingEnabled><code>imageSmoothingEnabled</code></dfn>
+  attribute, on getting, must return the last value it was set to. On
+  setting, it must be set to the new value. When the
+  <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object is created, the
+  attribute must be set to true.</p>
+
+  </div>
+
+
+  <h6 id=shadows><span class=secno>4.8.11.1.17 </span><dfn>Shadows</dfn></h6>
+
   <p>All drawing operations are affected by the four global shadow
   attributes.</p>
 
@@ -40113,7 +40125,7 @@
 
   <div class=impl>
 
-  <h6 id=drawing-model><span class=secno>4.8.11.1.17 </span><dfn>Drawing model</dfn></h6>
+  <h6 id=drawing-model><span class=secno>4.8.11.1.18 </span><dfn>Drawing model</dfn></h6>
 
   <p>When a shape or image is painted, user agents must follow these
   steps, in the order given (or act as if they do):</p>
@@ -40144,7 +40156,7 @@
   </ol></div>
 
 
-  <h6 id=best-practices><span class=secno>4.8.11.1.18 </span>Best practices</h6>
+  <h6 id=best-practices><span class=secno>4.8.11.1.19 </span>Best practices</h6>
 
   <p><i>This section is non-normative.</i></p>
 
@@ -40206,7 +40218,7 @@
   attribute.</p>
 
 
-  <h6 id=examples><span class=secno>4.8.11.1.19 </span>Examples</h6>
+  <h6 id=examples><span class=secno>4.8.11.1.20 </span>Examples</h6>
 
   <p><i>This section is non-normative.</i></p>
 

Modified: index
===================================================================
--- index	2012-05-30 23:42:43 UTC (rev 7111)
+++ index	2012-05-31 22:36:55 UTC (rev 7112)
@@ -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 — Last Updated 30 May 2012</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 31 May 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>
@@ -613,10 +613,11 @@
          <li><a href=#hit-regions><span class=secno>4.8.11.1.13 </span>Hit regions</a></li>
          <li><a href=#pixel-manipulation><span class=secno>4.8.11.1.14 </span>Pixel manipulation</a></li>
          <li><a href=#compositing><span class=secno>4.8.11.1.15 </span>Compositing</a></li>
-         <li><a href=#shadows><span class=secno>4.8.11.1.16 </span>Shadows</a></li>
-         <li><a href=#drawing-model><span class=secno>4.8.11.1.17 </span>Drawing model</a></li>
-         <li><a href=#best-practices><span class=secno>4.8.11.1.18 </span>Best practices</a></li>
-         <li><a href=#examples><span class=secno>4.8.11.1.19 </span>Examples</a></ol></li>
+         <li><a href=#image-smoothing><span class=secno>4.8.11.1.16 </span>Image smoothing</a></li>
+         <li><a href=#shadows><span class=secno>4.8.11.1.17 </span>Shadows</a></li>
+         <li><a href=#drawing-model><span class=secno>4.8.11.1.18 </span>Drawing model</a></li>
+         <li><a href=#best-practices><span class=secno>4.8.11.1.19 </span>Best practices</a></li>
+         <li><a href=#examples><span class=secno>4.8.11.1.20 </span>Examples</a></ol></li>
        <li><a href=#color-spaces-and-color-correction><span class=secno>4.8.11.2 </span>Color spaces and color correction</a></li>
        <li><a href=#security-with-canvas-elements><span class=secno>4.8.11.3 </span>Security with <code>canvas</code> elements</a></ol></li>
      <li><a href=#the-map-element><span class=secno>4.8.12 </span>The <code>map</code> element</a></li>
@@ -35405,6 +35406,9 @@
   // compositing
            attribute double <a href=#dom-context-2d-globalalpha title=dom-context-2d-globalAlpha>globalAlpha</a>; // (default 1.0)
            attribute DOMString <a href=#dom-context-2d-globalcompositeoperation title=dom-context-2d-globalCompositeOperation>globalCompositeOperation</a>; // (default source-over)
+
+  // image smoothing
+           attribute boolean <a href=#dom-context-2d-imagesmoothingenabled title=dom-context-2d-imageSmoothingEnabled>imageSmoothingEnabled</a>; // (default true)
 <!--
   // v7 we've also received requests for:
   - turning off antialiasing to avoid seams when patterns are painted next to each other
@@ -35459,7 +35463,6 @@
   <a href=#textmetrics>TextMetrics</a> <a href=#dom-context-2d-measuretext title=dom-context-2d-measureText>measureText</a>(DOMString text);
 
   // drawing images
-           attribute boolean <a href=#dom-context-2d-imagesmoothingenabled title=dom-context-2d-imageSmoothingEnabled>imageSmoothingEnabled</a>; // (default true)
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>((<a href=#htmlimageelement>HTMLImageElement</a> or <a href=#htmlcanvaselement>HTMLCanvasElement</a> or <a href=#htmlvideoelement>HTMLVideoElement</a>) image, double dx, double dy);
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>((<a href=#htmlimageelement>HTMLImageElement</a> or <a href=#htmlcanvaselement>HTMLCanvasElement</a> or <a href=#htmlvideoelement>HTMLVideoElement</a>) image, double dx, double dy, double dw, double dh);
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>((<a href=#htmlimageelement>HTMLImageElement</a> or <a href=#htmlcanvaselement>HTMLCanvasElement</a> or <a href=#htmlvideoelement>HTMLVideoElement</a>) image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh);
@@ -37788,14 +37791,17 @@
 
     <p>If the original image data is a bitmap image, the value painted
     at a point in the area of the repetitions is computed by filtering
-    the original image data. The user agent may use any filtering
-    algorithm (for example bilinear interpolation or
-    nearest-neighbor). When the filtering algorithm requires a pixel
-    value from outside the original image data, it must instead use
-    the value from wrapping the pixel's coordinates to the original
-    image's dimensions. (That is, the filter uses 'repeat' behavior,
-    regardless of the value of <var title="">repetition</var>.)
-    <!-- drawImage() has a similar paragraph with different rules -->
+    the original image data. If the <code title=dom-context-2d-imageSmoothingEnabled><a href=#dom-context-2d-imagesmoothingenabled>imageSmoothingEnabled</a></code>
+    attribute is set to true, then the user agent may use any
+    filtering algorithm (for example bilinear interpolation or
+    nearest-neighbor). If the <code title=dom-context-2d-imageSmoothingEnabled><a href=#dom-context-2d-imagesmoothingenabled>imageSmoothingEnabled</a></code>
+    attribute is set to false, the image must be rendered using
+    nearest-neighbor interpolation. When such a filtering algorithm
+    requires a pixel value from outside the original image data, it
+    must instead use the value from wrapping the pixel's coordinates
+    to the original image's dimensions. (That is, the filter uses
+    'repeat' behavior, regardless of the value of <var title="">repetition</var>.)
+    <!-- drawImage() has similar paragraphs with different rules -->
 
    </li>
 
@@ -38701,19 +38707,6 @@
 
    </dd>
 
-   <dt><var title="">context</var> . <code title=dom-context-2d-imageSmoothingEnabled><a href=#dom-context-2d-imagesmoothingenabled>imageSmoothingEnabled</a></code> [ = <var title="">value</var> ]</dt>
-
-   <dd>
-
-    <p>Returns whether the <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code> method will
-    attempt to smooth the image if it has to rescale it (as opposed to
-    just rendering the image with "big pixels").</p>
-
-    <p>Can be set, to change whether images are smoothed (true) or not
-    (false).</p>
-
-   </dd>
-
   </dl><div class=impl>
 
   <p>If not specified, the <var title="">dw</var> and <var title="">dh</var> arguments must default to the values of <var title="">sw</var> and <var title="">sh</var>, interpreted such that
@@ -38826,12 +38819,6 @@
   <a href=#clipping-region>clipping region</a>, and <a href=#dom-context-2d-globalcompositeoperation title=dom-context-2d-globalCompositeOperation>global composition
   operators</a>.</p>
 
-  <p>The <dfn id=dom-context-2d-imagesmoothingenabled title=dom-context-2d-imageSmoothingEnabled><code>imageSmoothingEnabled</code></dfn>
-  attribute, on getting, must return the last value it was set to. On
-  setting, it must be set to the new value. When the
-  <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object is create, the
-  attribute must be set to true.</p>
-
   </div>
 
 
@@ -39971,9 +39958,34 @@
 
 
 
+  <h6 id=image-smoothing><span class=secno>4.8.11.1.16 </span>Image smoothing</h6>
 
-  <h6 id=shadows><span class=secno>4.8.11.1.16 </span><dfn>Shadows</dfn></h6>
+  <dl class=domintro><dt><var title="">context</var> . <code title=dom-context-2d-imageSmoothingEnabled><a href=#dom-context-2d-imagesmoothingenabled>imageSmoothingEnabled</a></code> [ = <var title="">value</var> ]</dt>
 
+   <dd>
+
+    <p>Returns whether pattern fills and the <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code> method will
+    attempt to smooth images if they have to rescale them (as opposed
+    to just rendering the images with "big pixels").</p>
+
+    <p>Can be set, to change whether images are smoothed (true) or not
+    (false).</p>
+
+   </dd>
+
+  </dl><div class=impl>
+
+  <p>The <dfn id=dom-context-2d-imagesmoothingenabled title=dom-context-2d-imageSmoothingEnabled><code>imageSmoothingEnabled</code></dfn>
+  attribute, on getting, must return the last value it was set to. On
+  setting, it must be set to the new value. When the
+  <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object is created, the
+  attribute must be set to true.</p>
+
+  </div>
+
+
+  <h6 id=shadows><span class=secno>4.8.11.1.17 </span><dfn>Shadows</dfn></h6>
+
   <p>All drawing operations are affected by the four global shadow
   attributes.</p>
 
@@ -40113,7 +40125,7 @@
 
   <div class=impl>
 
-  <h6 id=drawing-model><span class=secno>4.8.11.1.17 </span><dfn>Drawing model</dfn></h6>
+  <h6 id=drawing-model><span class=secno>4.8.11.1.18 </span><dfn>Drawing model</dfn></h6>
 
   <p>When a shape or image is painted, user agents must follow these
   steps, in the order given (or act as if they do):</p>
@@ -40144,7 +40156,7 @@
   </ol></div>
 
 
-  <h6 id=best-practices><span class=secno>4.8.11.1.18 </span>Best practices</h6>
+  <h6 id=best-practices><span class=secno>4.8.11.1.19 </span>Best practices</h6>
 
   <p><i>This section is non-normative.</i></p>
 
@@ -40206,7 +40218,7 @@
   attribute.</p>
 
 
-  <h6 id=examples><span class=secno>4.8.11.1.19 </span>Examples</h6>
+  <h6 id=examples><span class=secno>4.8.11.1.20 </span>Examples</h6>
 
   <p><i>This section is non-normative.</i></p>
 

Modified: source
===================================================================
--- source	2012-05-30 23:42:43 UTC (rev 7111)
+++ source	2012-05-31 22:36:55 UTC (rev 7112)
@@ -41258,6 +41258,9 @@
   // compositing
            attribute double <span title="dom-context-2d-globalAlpha">globalAlpha</span>; // (default 1.0)
            attribute DOMString <span title="dom-context-2d-globalCompositeOperation">globalCompositeOperation</span>; // (default source-over)
+
+  // image smoothing
+           attribute boolean <span title="dom-context-2d-imageSmoothingEnabled">imageSmoothingEnabled</span>; // (default true)
 <!--
   // v7 we've also received requests for:
   - turning off antialiasing to avoid seams when patterns are painted next to each other
@@ -41312,7 +41315,6 @@
   <span>TextMetrics</span> <span title="dom-context-2d-measureText">measureText</span>(DOMString text);
 
   // drawing images
-           attribute boolean <span title="dom-context-2d-imageSmoothingEnabled">imageSmoothingEnabled</span>; // (default true)
   void <span title="dom-context-2d-drawImage">drawImage</span>((<span>HTMLImageElement</span> or <span>HTMLCanvasElement</span> or <span>HTMLVideoElement</span>) image, double dx, double dy);
   void <span title="dom-context-2d-drawImage">drawImage</span>((<span>HTMLImageElement</span> or <span>HTMLCanvasElement</span> or <span>HTMLVideoElement</span>) image, double dx, double dy, double dw, double dh);
   void <span title="dom-context-2d-drawImage">drawImage</span>((<span>HTMLImageElement</span> or <span>HTMLCanvasElement</span> or <span>HTMLVideoElement</span>) image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh);
@@ -44113,14 +44115,20 @@
 
     <p>If the original image data is a bitmap image, the value painted
     at a point in the area of the repetitions is computed by filtering
-    the original image data. The user agent may use any filtering
-    algorithm (for example bilinear interpolation or
-    nearest-neighbor). When the filtering algorithm requires a pixel
-    value from outside the original image data, it must instead use
-    the value from wrapping the pixel's coordinates to the original
-    image's dimensions. (That is, the filter uses 'repeat' behavior,
-    regardless of the value of <var title="">repetition</var>.)
-    <!-- drawImage() has a similar paragraph with different rules -->
+    the original image data. If the <code
+    title="dom-context-2d-imageSmoothingEnabled">imageSmoothingEnabled</code>
+    attribute is set to true, then the user agent may use any
+    filtering algorithm (for example bilinear interpolation or
+    nearest-neighbor). If the <code
+    title="dom-context-2d-imageSmoothingEnabled">imageSmoothingEnabled</code>
+    attribute is set to false, the image must be rendered using
+    nearest-neighbor interpolation. When such a filtering algorithm
+    requires a pixel value from outside the original image data, it
+    must instead use the value from wrapping the pixel's coordinates
+    to the original image's dimensions. (That is, the filter uses
+    'repeat' behavior, regardless of the value of <var
+    title="">repetition</var>.)
+    <!-- drawImage() has similar paragraphs with different rules -->
 
    </li>
 
@@ -45158,20 +45166,6 @@
 
    </dd>
 
-   <dt><var title="">context</var> . <code title="dom-context-2d-imageSmoothingEnabled">imageSmoothingEnabled</code> [ = <var title="">value</var> ]</dt>
-
-   <dd>
-
-    <p>Returns whether the <code
-    title="dom-context-2d-drawImage">drawImage()</code> method will
-    attempt to smooth the image if it has to rescale it (as opposed to
-    just rendering the image with "big pixels").</p>
-
-    <p>Can be set, to change whether images are smoothed (true) or not
-    (false).</p>
-
-   </dd>
-
   </dl>
 
   <div class="impl">
@@ -45314,13 +45308,6 @@
   title="dom-context-2d-globalCompositeOperation">global composition
   operators</span>.</p>
 
-  <p>The <dfn
-  title="dom-context-2d-imageSmoothingEnabled"><code>imageSmoothingEnabled</code></dfn>
-  attribute, on getting, must return the last value it was set to. On
-  setting, it must be set to the new value. When the
-  <code>CanvasRenderingContext2D</code> object is create, the
-  attribute must be set to true.</p>
-
   </div>
 
 
@@ -46708,7 +46695,38 @@
 
 
 
+  <h6>Image smoothing</h6>
 
+  <dl class="domintro">
+
+   <dt><var title="">context</var> . <code title="dom-context-2d-imageSmoothingEnabled">imageSmoothingEnabled</code> [ = <var title="">value</var> ]</dt>
+
+   <dd>
+
+    <p>Returns whether pattern fills and the <code
+    title="dom-context-2d-drawImage">drawImage()</code> method will
+    attempt to smooth images if they have to rescale them (as opposed
+    to just rendering the images with "big pixels").</p>
+
+    <p>Can be set, to change whether images are smoothed (true) or not
+    (false).</p>
+
+   </dd>
+
+  </dl>
+
+  <div class="impl">
+
+  <p>The <dfn
+  title="dom-context-2d-imageSmoothingEnabled"><code>imageSmoothingEnabled</code></dfn>
+  attribute, on getting, must return the last value it was set to. On
+  setting, it must be set to the new value. When the
+  <code>CanvasRenderingContext2D</code> object is created, the
+  attribute must be set to true.</p>
+
+  </div>
+
+
   <h6><dfn>Shadows</dfn></h6>
 
   <p>All drawing operations are affected by the four global shadow




More information about the Commit-Watchers mailing list