(x, y, width, height)
| 34 | Object.defineProperty(this, "pixelFormat", {value: options.pixelFormat ?? Bitmap.RGB565LE}); |
| 35 | } |
| 36 | begin(x, y, width, height) { |
| 37 | if ("object" === typeof x) |
| 38 | ({x, y, width, height} = x); |
| 39 | |
| 40 | this.#show?.begin(x, y, width, height); |
| 41 | |
| 42 | if (!this.#continue) |
| 43 | this.#digest.reset(); |
| 44 | this.#continue = false; |
| 45 | |
| 46 | this.#digest.write(Int32Array.of(x, y, width, height).buffer); |
| 47 | } |
| 48 | send(pixels, offset, byteLength) { |
| 49 | this.#show?.send(pixels, offset, byteLength); |
| 50 |