API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classPixelRead
One read handed out by PixelReader.request: poll it from the frame loop, take its pixels once ready, then release it. A read is never ready in the frame that requested it. It becomes ready a frame or more later, or failed if the device was lost, the source was resized or the reader destroyed underneath it. Both are terminal, and `release()` is the caller's job in either case. Handles are pooled per slot: after `release()` the same object is handed out again by a later request, so keep no reference past the release.
import { PixelRead } from '@codexo/exojs'One read handed out by PixelReader.request: poll it from the frame loop, take its pixels once ready, then release it.
A read is never ready in the frame that requested it. It becomes ready a frame or more later, or failed if the device was lost, the source was resized or the reader destroyed underneath it. Both are terminal, and `release()` is the caller's job in either case.
Handles are pooled per slot: after `release()` the same object is handed out again by a later request, so keep no reference past the release.
release(): voidfailed: booleanready: boolean