Skip to main content
Module

x/gluten/mod.ts>WebGLRenderingContext#readPixels

OpenGL bindings & WebGL API implementation for Deno.
Go to Latest
method WebGLRenderingContext.prototype.readPixels
import { WebGLRenderingContext } from "https://deno.land/x/gluten@0.1.6/mod.ts";

Pixels in the current framebuffer are read back into an ArrayBufferView object. Fills pixels with the pixel data in the specified rectangle of the frame buffer. The data returned from readPixels must be up-to-date as of the most recently sent drawing command.

Parameters

x: number
y: number
width: number
height: number
format: number
type: number
pixels: ArrayBufferView