OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of html; | 5 part of html; |
6 | 6 |
7 /** | 7 /** |
8 * An object that can be drawn to a 2D canvas rendering context. | 8 * An object that can be drawn to a 2D canvas rendering context. |
9 * | 9 * |
10 * This object is either an [ImageElement], [VideoElement], or | 10 * The image drawn to the canvas depends on the type of this object: |
11 * [CanvasElement]. | |
12 * | |
13 * The image drawn to the canvas differs by implementation: | |
14 * | 11 * |
15 * * If this object is an [ImageElement], then this element's image is | 12 * * If this object is an [ImageElement], then this element's image is |
16 * drawn to the canvas. If this element is an animated image, then this | 13 * drawn to the canvas. If this element is an animated image, then this |
17 * element's poster frame is drawn. If this element has no poster frame, then | 14 * element's poster frame is drawn. If this element has no poster frame, then |
18 * the first frame of animation is drawn. | 15 * the first frame of animation is drawn. |
19 * | 16 * |
20 * * If this object is a [VideoElement], then the frame at this element's curren
t | 17 * * If this object is a [VideoElement], then the frame at this element's curren
t |
21 * playback position is drawn to the canvas. | 18 * playback position is drawn to the canvas. |
22 * | 19 * |
23 * * If this object is a [CanvasElement], then this element's bitmap is drawn to | 20 * * If this object is a [CanvasElement], then this element's bitmap is drawn to |
(...skipping 13 matching lines...) Expand all Loading... |
37 * ## Other resources | 34 * ## Other resources |
38 * | 35 * |
39 * * [Image sources for 2D rendering contexts] | 36 * * [Image sources for 2D rendering contexts] |
40 * (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-eleme
nt.html#image-sources-for-2d-rendering-contexts) | 37 * (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-eleme
nt.html#image-sources-for-2d-rendering-contexts) |
41 * from WHATWG. | 38 * from WHATWG. |
42 * * [Drawing images] | 39 * * [Drawing images] |
43 * (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-eleme
nt.html#dom-context-2d-drawimage) | 40 * (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-eleme
nt.html#dom-context-2d-drawimage) |
44 * from WHATWG. | 41 * from WHATWG. |
45 */ | 42 */ |
46 abstract class CanvasImageSource {} | 43 abstract class CanvasImageSource {} |
OLD | NEW |