ImageBuffer Class

Uncompressed rectangular bitmap image data.


Name Description
create(data: Uint8Array, format: ImageBufferFormat, width: number): ImageBuffer | undefined Static Create a new ImageBuffer.  
getNumBytesPerPixel(format: ImageBufferFormat): number Static Determine the number of bytes allocated to a single pixel for the specified format.  


Name Type Description
data Uint8Array Image data in which each pixel occupies 1 or more bytes depending of the ImageBufferFormat.  
format ImageBufferFormat Format of the bytes in the image.  
height Accessor ReadOnly number Get the height of this image in pixels.  
numBytesPerPixel Accessor ReadOnly number Return the number of bytes allocated for each pixel.  
width number Width of image in pixels  

Defined in

Last Updated: 20 September, 2019