You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"html": "The <dfn data-dfn-for=\"CanvasImageData\" id=\"dom-context-2d-createimagedata-imagedata\" data-dfn-type=\"method\"><code>createImageData(<var>imagedata</var>)</code></dfn>\n method steps are:",
16188
+
"html": "The <dfn data-dfn-for=\"CanvasImageData\" id=\"dom-context-2d-createimagedata-imagedata\" data-dfn-type=\"method\"><code>createImageData(<var>imageData</var>)</code></dfn>\n method steps are:",
16189
16189
"rationale": "let",
16190
16190
"steps": [
16191
16191
{
16192
16192
"html": "<p>Let <var>newImageData</var> be a <a id=\"pixel-manipulation:new-2\" href=\"https://webidl.spec.whatwg.org/#new\" data-x-internal=\"new\">new</a> <code id=\"pixel-manipulation:imagedata-9\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#imagedata\">ImageData</a></code> object.</p>"
16193
16193
},
16194
16194
{
16195
-
"html": "<p><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#initialize-an-imagedata-object\" id=\"pixel-manipulation:initialize-an-imagedata-object-4\">Initialize</a> <var>newImageData</var>\n given the value of <var>imagedata</var>'s <code id=\"pixel-manipulation:dom-imagedata-width\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-width\">width</a></code>\n attribute, the value of <var>imagedata</var>'s <code id=\"pixel-manipulation:dom-imagedata-height\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-height\">height</a></code>\n attribute, and <i><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#initialize-imagedata-defaultcolorspace\" id=\"pixel-manipulation:initialize-imagedata-defaultcolorspace-2\">defaultColorSpace</a></i> set to the value of\n <var>imagedata</var>'s <code id=\"pixel-manipulation:dom-imagedata-colorspace\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code> attribute.</p>"
16195
+
"html": "<p><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#initialize-an-imagedata-object\" id=\"pixel-manipulation:initialize-an-imagedata-object-4\">Initialize</a> <var>newImageData</var>\n given the value of <var>imageData</var>'s <code id=\"pixel-manipulation:dom-imagedata-width\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-width\">width</a></code>\n attribute, the value of <var>imageData</var>'s <code id=\"pixel-manipulation:dom-imagedata-height\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-height\">height</a></code>\n attribute, and <i><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#initialize-imagedata-defaultcolorspace\" id=\"pixel-manipulation:initialize-imagedata-defaultcolorspace-2\">defaultColorSpace</a></i> set to the value of\n <var>imageData</var>'s <code id=\"pixel-manipulation:dom-imagedata-colorspace\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code> attribute.</p>"
16196
16196
},
16197
16197
{
16198
16198
"html": "<p>Initialize the image data of <var>newImageData</var> to <a id=\"pixel-manipulation:transparent-black-6\" href=\"https://drafts.csswg.org/css-color/#transparent-black\" data-x-internal=\"transparent-black\">transparent\n black</a>.</p>"
@@ -16300,11 +16300,13 @@
16300
16300
]
16301
16301
},
16302
16302
{
16303
-
"html": "The method, when invoked, must act as follows:",
16303
+
"name": "put pixels from an ImageData onto a bitmap",
"html": "To <dfn id=\"dom-context2d-putimagedata-common\">put pixels from an <code>ImageData</code>\n onto a bitmap</dfn>, given an <code id=\"pixel-manipulation:imagedata-12\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#imagedata\">ImageData</a></code> <var>imageData</var>,\n an <a href=\"https://html.spec.whatwg.org/multipage/canvas.html#output-bitmap\" id=\"pixel-manipulation:output-bitmap-5\">output bitmap</a> <var>bitmap</var>, and numbers <var>dx</var>, <var>dy</var>,\n <var>dirtyX</var>, <var>dirtyY</var>, <var>dirtyWidth</var>, and <var>dirtyHeight</var>:",
"html": "<p>If <a id=\"pixel-manipulation:isdetachedbuffer\" href=\"https://tc39.es/ecma262/#sec-isdetachedbuffer\" data-x-internal=\"isdetachedbuffer\">IsDetachedBuffer</a>(<var>buffer</var>) is true, then throw an\n <a id=\"pixel-manipulation:invalidstateerror-3\" href=\"https://webidl.spec.whatwg.org/#invalidstateerror\" data-x-internal=\"invalidstateerror\">\"<code>InvalidStateError</code>\"</a> <code id=\"pixel-manipulation:domexception-13\"><a data-x-internal=\"domexception\" href=\"https://webidl.spec.whatwg.org/#dfn-DOMException\">DOMException</a></code>.</p>"
@@ -16316,13 +16318,13 @@
16316
16318
"html": "<p>If <var>dirtyX</var> is negative, then let <var>dirtyWidth</var> be <span><var>dirtyWidth</var>+<var>dirtyX</var></span>, and let <var>dirtyX</var> be zero.</p>\n\n <p>If <var>dirtyY</var> is negative, then let <var>dirtyHeight</var> be <span><var>dirtyHeight</var>+<var>dirtyY</var></span>, and let <var>dirtyY</var> be zero.</p>"
16317
16319
},
16318
16320
{
16319
-
"html": "<p>If <var>dirtyX</var>+<var>dirtyWidth</var> is greater than the <code id=\"pixel-manipulation:dom-imagedata-width-5\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-width\">width</a></code> attribute of the <var>imagedata</var> argument, then\n let <var>dirtyWidth</var> be the value of that <code id=\"pixel-manipulation:dom-imagedata-width-6\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-width\">width</a></code>\n attribute, minus the value of <var>dirtyX</var>.</p>\n\n <p>If <var>dirtyY</var>+<var>dirtyHeight</var> is greater than the <code id=\"pixel-manipulation:dom-imagedata-height-5\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-height\">height</a></code> attribute of the <var>imagedata</var> argument, then\n let <var>dirtyHeight</var> be the value of that <code id=\"pixel-manipulation:dom-imagedata-height-6\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-height\">height</a></code> attribute, minus the value of <var>dirtyY</var>.</p>"
16321
+
"html": "<p>If <var>dirtyX</var>+<var>dirtyWidth</var> is greater than the <code id=\"pixel-manipulation:dom-imagedata-width-5\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-width\">width</a></code> attribute of the <var>imageData</var> argument, then\n let <var>dirtyWidth</var> be the value of that <code id=\"pixel-manipulation:dom-imagedata-width-6\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-width\">width</a></code>\n attribute, minus the value of <var>dirtyX</var>.</p>\n\n <p>If <var>dirtyY</var>+<var>dirtyHeight</var> is greater than the <code id=\"pixel-manipulation:dom-imagedata-height-5\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-height\">height</a></code> attribute of the <var>imageData</var> argument, then\n let <var>dirtyHeight</var> be the value of that <code id=\"pixel-manipulation:dom-imagedata-height-6\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-height\">height</a></code> attribute, minus the value of <var>dirtyY</var>.</p>"
16320
16322
},
16321
16323
{
16322
16324
"html": "<p>If, after those changes, either <var>dirtyWidth</var> or <var>dirtyHeight</var> are negative\n or zero, then return without affecting any bitmaps.</p>"
16323
16325
},
16324
16326
{
16325
-
"html": "<p>For all integer values of <var>x</var> and <var>y</var> where <span><var>dirtyX</var> ≤ <var>x</var> < <span><var>dirtyX</var>+<var>dirtyWidth</var></span></span> and <span><var>dirtyY</var> ≤ <var>y</var> < <span><var>dirtyY</var>+<var>dirtyHeight</var></span></span>, copy the\n four channels of the pixel with coordinate (<var>x</var>, <var>y</var>) in\n the <var>imagedata</var> data structure's <a href=\"https://html.spec.whatwg.org/multipage/canvas.html#canvas-pixel-arraybuffer\" id=\"pixel-manipulation:canvas-pixel-arraybuffer-4\">Canvas Pixel\n <code>ArrayBuffer</code></a> to the pixel with coordinate (<span><var>dx</var>+<var>x</var></span>, <var>dy</var>+<var>y</var>)\n in the rendering context's <a href=\"https://html.spec.whatwg.org/multipage/canvas.html#output-bitmap\" id=\"pixel-manipulation:output-bitmap-4\">output bitmap</a>.</p>"
16327
+
"html": "<p>For all integer values of <var>x</var> and <var>y</var> where <span><var>dirtyX</var> ≤ <var>x</var> < <span><var>dirtyX</var>+<var>dirtyWidth</var></span></span> and <span><var>dirtyY</var> ≤ <var>y</var> < <span><var>dirtyY</var>+<var>dirtyHeight</var></span></span>,\n set the pixel with coordinate (<span><var>dx</var>+<var>x</var></span>,\n <var>dy</var>+<var>y</var>) in <var>bitmap</var> to the color of the pixel at coordinate\n (<var>x</var>, <var>y</var>) in the <var>imageData</var> data structure's\n <a href=\"https://html.spec.whatwg.org/multipage/canvas.html#canvas-pixel-arraybuffer\" id=\"pixel-manipulation:canvas-pixel-arraybuffer-4\">Canvas Pixel <code>ArrayBuffer</code></a>,\n converted from <var>imageData</var>'s <code id=\"pixel-manipulation:dom-imagedata-colorspace-7\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code>\n to the <a href=\"https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-color-space\" id=\"pixel-manipulation:concept-canvas-color-space-6\">color space</a> of <var>bitmap</var>\n using <a id=\"pixel-manipulation:'relative-colorimetric'-2\" href=\"https://drafts.csswg.org/css-color-5/#valdef-color-profile-rendering-intent-relative-colorimetric\" data-x-internal=\"'relative-colorimetric'\">'relative-colorimetric'</a> rendering intent.</p>"
"html": "A <dfn data-local-lt=\"RDF literal\" data-lt=\"literal|RDF literal\" data-plurals=\"literals\" id=\"dfn-literal\" tabindex=\"0\" aria-haspopup=\"dialog\" data-dfn-type=\"dfn\">literal</dfn> in an <a href=\"https://w3c.github.io/rdf-concepts/spec/#dfn-rdf-graph\" class=\"internalDFN\" data-link-type=\"dfn\" id=\"ref-for-dfn-rdf-graph-23\">RDF graph</a> consists of\n two, three, or four elements, as follow:",
10
+
"html": "A <dfn data-local-lt=\"RDF literal\" data-lt=\"literal|RDF literal\" data-plurals=\"literals\" id=\"dfn-literal\" tabindex=\"0\" aria-haspopup=\"dialog\" data-dfn-type=\"dfn\">literal</dfn> in an <a href=\"https://w3c.github.io/rdf-concepts/spec/#dfn-rdf-graph\" class=\"internalDFN\" data-link-type=\"dfn\" id=\"ref-for-dfn-rdf-graph-26\">RDF graph</a> consists of\n two, three, or four elements, as follow:",
11
11
"rationale": "if",
12
12
"steps": [
13
13
{
14
14
"html": "a <dfn data-plurals=\"lexical forms\" id=\"dfn-lexical-form\" tabindex=\"0\" aria-haspopup=\"dialog\" data-dfn-type=\"dfn\">lexical form</dfn> consisting of a sequence of\n <a data-cite=\"I18N-GLOSSARY#dfn-code-point\" class=\"lint-ignore\" href=\"https://www.w3.org/TR/i18n-glossary/#dfn-code-point\" id=\"ref-for-index-term-unicode-code-points-4\">Unicode code points</a> [<cite><a class=\"bibref\" data-link-type=\"biblio\" href=\"https://w3c.github.io/rdf-concepts/spec/#bib-unicode\" title=\"The Unicode Standard\">UNICODE</a></cite>]\n which are <a data-cite=\"I18N-GLOSSARY#dfn-scalar-value\" href=\"https://www.w3.org/TR/i18n-glossary/#dfn-scalar-value\" id=\"ref-for-index-term-unicode-scalar-values-2\">Unicode scalar values</a>,\n and therefore do not contain\n <a data-cite=\"I18N-GLOSSARY#dfn-surrogate\" class=\"lint-ignore\" href=\"https://www.w3.org/TR/i18n-glossary/#dfn-surrogate\" id=\"ref-for-index-term-surrogate-code-points-2\">Unicode surrogate code points</a>"
15
15
},
16
16
{
17
-
"html": "a <dfn data-plurals=\"datatype iris\" id=\"dfn-datatype-iri\" tabindex=\"0\" aria-haspopup=\"dialog\" data-dfn-type=\"dfn\">datatype <abbr title=\"Internationalized Resource Identifier\">IRI</abbr></dfn>, being an <a href=\"https://w3c.github.io/rdf-concepts/spec/#dfn-iri\" class=\"internalDFN\" data-link-type=\"dfn\" id=\"ref-for-dfn-iri-22\"><abbr title=\"Internationalized Resource Identifier\">IRI</abbr></a>\n identifying a datatype that determines how the lexical form maps\n to a <a href=\"https://w3c.github.io/rdf-concepts/spec/#dfn-literal-value\" class=\"internalDFN\" data-link-type=\"dfn\" id=\"ref-for-dfn-literal-value-3\">literal value</a>"
17
+
"html": "a <dfn data-plurals=\"datatype iris\" id=\"dfn-datatype-iri\" tabindex=\"0\" aria-haspopup=\"dialog\" data-dfn-type=\"dfn\">datatype <abbr title=\"Internationalized Resource Identifier\">IRI</abbr></dfn>, being an <a href=\"https://w3c.github.io/rdf-concepts/spec/#dfn-iri\" class=\"internalDFN\" data-link-type=\"dfn\" id=\"ref-for-dfn-iri-25\"><abbr title=\"Internationalized Resource Identifier\">IRI</abbr></a>\n identifying a datatype that determines how the lexical form maps\n to a <a href=\"https://w3c.github.io/rdf-concepts/spec/#dfn-literal-value\" class=\"internalDFN\" data-link-type=\"dfn\" id=\"ref-for-dfn-literal-value-3\">literal value</a>"
18
18
},
19
19
{
20
20
"html": "if and only if the <a href=\"https://w3c.github.io/rdf-concepts/spec/#dfn-datatype-iri\" class=\"internalDFN\" data-link-type=\"dfn\" id=\"ref-for-dfn-datatype-iri-1\">datatype <abbr title=\"Internationalized Resource Identifier\">IRI</abbr></a> is\n <code>http://www.w3.org/1999/02/22-rdf-syntax-ns#langString</code>, a\n non-empty <dfn data-plurals=\"language tags\" id=\"dfn-language-tag\" tabindex=\"0\" aria-haspopup=\"dialog\" data-dfn-type=\"dfn\">language tag</dfn> as defined by [<cite><a class=\"bibref\" data-link-type=\"biblio\" href=\"https://w3c.github.io/rdf-concepts/spec/#bib-bcp47\" title=\"Tags for Identifying Languages\">BCP47</a></cite>]. The\n language tag <em class=\"rfc2119\">MUST</em> be well-formed according to\n <a data-cite=\"bcp47#section-2.2.9\" href=\"https://www.rfc-editor.org/rfc/rfc5646#section-2.2.9\" id=\"ref-for-index-term-section-2-2-9-1\">section 2.2.9</a>\n of [<cite><a class=\"bibref\" data-link-type=\"biblio\" href=\"https://w3c.github.io/rdf-concepts/spec/#bib-bcp47\" title=\"Tags for Identifying Languages\">BCP47</a></cite>],\n and <em class=\"rfc2119\">MUST</em> be treated consistently, that is, in a case insensitive manner.\n Two language tags are the same if they only differ by case."
0 commit comments