Pixel.Buffer Interface

A rectangular array of pixels as read from a Viewport's frame buffer. Each pixel is represented as a Pixel.Data object. The contents of the pixel buffer will be specified using device pixels, not CSS pixels. See Viewport.devicePixelRatio and Viewport.cssPixelsToDevicePixels.

@see Viewport.readPixels.

Methods

Name Description
getPixel(x: number, y: number): Pixel.Data Retrieve the data associated with the pixel at (x,y) in view coordinates.  

Defined in

Last Updated: 28 March, 2024