()
| 121 | } |
| 122 | } |
| 123 | end() { |
| 124 | delete this.scan; |
| 125 | |
| 126 | if (!this.output.firstNybble) |
| 127 | this.output.position += 1; |
| 128 | |
| 129 | this.bits = new Bitmap(this.width, this.height, Bitmap.RLE | Bitmap.Gray16, |
| 130 | this.output.slice(0, this.output.position).buffer, 0); |
| 131 | |
| 132 | delete this.output; |
| 133 | |
| 134 | } |
| 135 | pixelsToBytes(count) { |
| 136 | return (count * this.depth + 7) >> 3; |
| 137 | } |