@@ -24,7 +24,7 @@ urlPrefix: https://heycam.github.io/webidl/; type: dfn;
24
24
url: throw; text: thrown
25
25
urlPrefix: https://html.spec.whatwg.org/multipage/scripting.html; type: dfn;
26
26
text: reset the rendering context to its default state
27
- text: scratch bitmap
27
+ text: output bitmap
28
28
text: set bitmap dimensions
29
29
url: concept-canvas-alpha; text: alpha
30
30
urlPrefix: http://www.ecma-international.org/ecma-262/6.0/#sec-; type: dfn;
@@ -258,11 +258,11 @@ Note: The {{PaintRenderingContext2D}} implements a subset of the {{CanvasRenderi
258
258
Specifically it doesn't implement the {{CanvasHitRegion}} , {{CanvasImageData}} ,
259
259
{{CanvasUserInterface}} , {{CanvasText}} or {{CanvasTextDrawingStyles}} APIs.
260
260
261
- A {{PaintRenderingContext2D}} object has a <a>scratch bitmap</a> . This is initialised when the
262
- object is created. The size of the <a>scratch bitmap</a> is the size of the fragment it is
261
+ A {{PaintRenderingContext2D}} object has a <a>output bitmap</a> . This is initialised when the
262
+ object is created. The size of the <a>output bitmap</a> is the size of the fragment it is
263
263
rendering.
264
264
265
- The size of the <a>scratch bitmap</a> does not necessarily represent the size of the actual bitmap
265
+ The size of the <a>output bitmap</a> does not necessarily represent the size of the actual bitmap
266
266
that the user agent will use internally or during rendering. For example, if the visual viewport is
267
267
zoomed the user agent may internally use bitmaps which correspond to the number of device pixels in
268
268
the coordinate space, so that the resulting rendering is of high quality.
@@ -271,19 +271,19 @@ The {{PaintRenderingContext2D}} object should have its <a>alpha</a> flag set to
271
271
rendering context is initially fully transparent.
272
272
273
273
Additionally the user agent may record the sequence of drawing operations which have been applied to
274
- the <a>scratch bitmap</a> such that the user agent can subsequently draw onto a device bitmap at the
275
- correct resolution. This also allows user agents to re-use the same output of the <a>scratch
274
+ the <a>output bitmap</a> such that the user agent can subsequently draw onto a device bitmap at the
275
+ correct resolution. This also allows user agents to re-use the same output of the <a>output
276
276
bitmap</a> repeatably while the visual viewport is being zoomed for example.
277
277
278
278
When the user agent is to <dfn>create a PaintRenderingContext2D object</dfn> for a given |width|,
279
279
|height| it <em> must</em> run the following steps:
280
280
1. Create a new {{PaintRenderingContext2D}} .
281
- 2. <a>Set bitmap dimensions</a> for the context's <a>scratch bitmap</a> to |width| and |height|.
281
+ 2. <a>Set bitmap dimensions</a> for the context's <a>output bitmap</a> to |width| and |height|.
282
282
3. Return the new {{PaintRenderingContext2D}} .
283
283
284
284
Note: The initial state of the rendering context is set inside the <a>set bitmap dimensions</a>
285
285
algorithm, as it invokes <a>reset the rendering context to its default state</a> and clears the
286
- <a>scratch bitmap</a> .
286
+ <a>output bitmap</a> .
287
287
288
288
Drawing an image {#drawing-an-image}
289
289
====================================
0 commit comments