Fix palette indexer bytes
This commit is contained in:
1 parent
2b1a3323a8
commit
d7a0bb4509
1 file changed
+1
-1
@@ -661,7 +661,7 @@
|
||||
const header = new Uint8Array([0x44, 0x50, 0x54, 0x01]); // 'DPT' + version 1
|
||||
|
||||
// Dimensions
|
||||
const widthBytes = new Uint8Array([ imageWidth ]);
|
||||
const widthBytes = new Uint32Array([ imageWidth ]);
|
||||
const heightBytes = new Uint32Array([ imageHeight ]);
|
||||
|
||||
// add indexed image data (imageWidth * imageHeight bytes)
|
||||
|
||||
Reference in new issue
Block a user