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
* (#451) Extended image class with bitPerPixel and byteWidth properties
* (#451) Adjusted image tests to new interface
* (#451) Adjusted usages of Image class to provide required new data, added type predicate to highlight and grabRegion
* (#451) Adjusted tests
Copy file name to clipboardExpand all lines: lib/image.class.ts
+38-4Lines changed: 38 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ export class Image {
12
12
* @param data Generic {@link Image} data
13
13
* @param channels Amount of {@link Image} channels
14
14
* @param id Image identifier
15
+
* @param bitsPerPixel Number of bits per single pixel
16
+
* @param byteWidth Total number of bytes per image line
15
17
* @param colorMode An images color mode, defaults to {@link ColorMode.BGR}
16
18
* @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})
0 commit comments