add rgb bands for thumb/preview as placeholder

This commit is contained in:
Stewart Allen 2021-07-26 17:08:52 -04:00
commit 9ab310d2a3
3 changed files with 53 additions and 5 deletions

View file

@ -31,6 +31,11 @@ self.ArrayWriter = class ArrayWriter {
this.array[this.pos++] = v & 0xff;
}
writeBytes(bytes) {
this.array.appendAll(bytes);
this.pos += bytes.length;
}
toBuffer() {
return new Uint8ClampedArray(this.array).buffer;
}