readPixels method
void
readPixels()
The WebGLRenderingContext.readPixels()
method of the
WebGL API
reads a block of pixels from a
specified rectangle of the current color framebuffer into a TypedArray
or a DataView
object.
Implementation
external void readPixels(
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
ArrayBufferView? pixels,
);