@@ -18,44 +18,53 @@ import js.typedarray.Uint8ClampedArray
18
18
@ JSGlobal
19
19
class ImageData extends js.Object {
20
20
21
- /**
22
- * Create an ImageData instance from an array of pixel data and a width.
23
- * @param data pixel data
24
- * @param width width in pixels
21
+ /** Create an ImageData instance from an array of pixel data and a width.
22
+ * @param data
23
+ * pixel data
24
+ * @param width
25
+ * width in pixels
25
26
*/
26
27
def this (data : Uint8ClampedArray , width : Int ) = this ()
27
28
28
- /**
29
- * Create an ImageData instance from an array of pixel data, width, and height.
30
- * @param data pixel data
31
- * @param width width in pixels
32
- * @param height height in pixels
29
+ /** Create an ImageData instance from an array of pixel data, width, and height.
30
+ * @param data
31
+ * pixel data
32
+ * @param width
33
+ * width in pixels
34
+ * @param height
35
+ * height in pixels
33
36
*/
34
37
def this (data : Uint8ClampedArray , width : Int , height : Int ) = this ()
35
38
36
- /**
37
- * Create a blank ImageData instance from specified width and height.
38
- * @param width width in pixels
39
- * @param height height in pixels
39
+ /** Create a blank ImageData instance from specified width and height.
40
+ * @param width
41
+ * width in pixels
42
+ * @param height
43
+ * height in pixels
40
44
*/
41
45
def this (width : Int , height : Int ) = this ()
42
46
43
- /**
44
- * Create a blank ImageData instance from specified width, height, and settings object.
45
- * @param width width in pixels
46
- * @param height height in pixels
47
- * @param settings image settings
47
+ /** Create a blank ImageData instance from specified width, height, and settings object.
48
+ * @param width
49
+ * width in pixels
50
+ * @param height
51
+ * height in pixels
52
+ * @param settings
53
+ * image settings
48
54
*/
49
- def this (width : Int , height : Int , setings : js. Object ) = this ()
55
+ def this (width : Int , height : Int , settings : ImageSettings ) = this ()
50
56
51
- /**
52
- * Create a blank ImageData instance from specified pixel data, width, height, and settings object.
53
- * @param data pixel data
54
- * @param width width in pixels
55
- * @param height height in pixels
56
- * @param settings image settings
57
+ /** Create a blank ImageData instance from specified pixel data, width, height, and settings object.
58
+ * @param data
59
+ * pixel data
60
+ * @param width
61
+ * width in pixels
62
+ * @param height
63
+ * height in pixels
64
+ * @param settings
65
+ * image settings
57
66
*/
58
- def this (data : Uint8ClampedArray , width : Int , height : Int , setings : js. Object ) = this ()
67
+ def this (data : Uint8ClampedArray , width : Int , height : Int , settings : ImageSettings ) = this ()
59
68
60
69
/** Is an unsigned long representing the actual width, in pixels, of the ImageData. */
61
70
def width : Int = js.native
0 commit comments