* Capture the underlying Node pixels. * NB it only works for nodes, not for content like video/canvas.
(x?: number, y?: number, w?: number, h?: number)
| 130 | * NB it only works for nodes, not for content like video/canvas. |
| 131 | */ |
| 132 | capture(x?: number, y?: number, w?: number, h?: number): NDArray { |
| 133 | invariant(this.glNode, "Bus does not contain any Node"); |
| 134 | return this.glNode!.capture(x, y, w, h); |
| 135 | } |
| 136 | |
| 137 | glBusRootNode: any = null; |
| 138 | onRef = (ref: any) => { |