interface TexturePixelsExtractionOptions {
    compression?: 0;
    frame?: Rectangle;
    out?: ArrayBuffer;
    texture?: Texture<Resource> | RenderTexture;
}

Properties

compression?: 0

The NONE compression mode.

frame?: Rectangle

The rectangle which the pixels are extracted from.

out?: ArrayBuffer

The optional output buffer to write the pixels to. May be detached. The (new) output buffer is returned.

texture?: Texture<Resource> | RenderTexture

The texture the pixels are extracted from.