Parse Bitmap to ImageData in cross-platform.
Installation
$ npm install pixel-bmp --save
var pixelBitmap= ;console; //object
API
file
) -> promise.then(images
)
pixelBitmap.parse(return images
is Array contains one or more ImageData
.
Return the
object
instead ofImageData
in Node.js
var file= 'https://59naga.github.io/fixtures/still.BMP'; pixelBitmap;// {width: 128, height: 128, data: <Uint8Array ..>}
Unsupport
- 32bit bitmap