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