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
Copy file name to clipboardExpand all lines: lib/image.class.ts
+14
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,15 @@
1
+
/**
2
+
* The {@link Image} class represents generic image data
3
+
*/
1
4
exportclassImage{
5
+
/**
6
+
* {@link Image} class constructor
7
+
* @param width {@link Image} width in pixels
8
+
* @param height {@link Image} height in pixels
9
+
* @param data Generic {@link Image} data
10
+
* @param channels Amount of {@link Image} channels
11
+
* @param pixelDensity Object containing scale info to work with e.g. Retina display data where the reported display size and pixel size differ (Default: {scaleX: 1.0, scaleY: 1.0})
12
+
*/
2
13
constructor(
3
14
publicreadonlywidth: number,
4
15
publicreadonlyheight: number,
@@ -14,6 +25,9 @@ export class Image {
14
25
}
15
26
}
16
27
28
+
/**
29
+
* {@link hasAlphaChannel} return true if an {@link Image} has an additional (fourth) alpha channel
0 commit comments