add rgb bands for thumb/preview as placeholder
This commit is contained in:
parent
127ca791da
commit
9ab310d2a3
3 changed files with 53 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue