Skip to content
Parse Bitmap to ImageData in cross-platform
CoffeeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.coffeelintrc
.travis.yml
.zuul.yml
README.md
package.json

README.md

pixelBitmap NPM version Build Status Coverage Status

Sauce Test Status

Parse Bitmap to ImageData in cross-platform.

Installation

$ npm install pixel-bmp --save
var pixelBitmap= require('pixel-bmp');
console.log(pixelBitmap); //object

API

pixelBitmap.parse(file) -> promise.then(images)

return images is Array contains one or more ImageData.

Return the object instead of ImageData in Node.js

var file= 'https://59naga.github.io/fixtures/still.BMP';

pixelBitmap.parse(file).then(function(images){
  console.log(images[0]);
});
// {width: 128, height: 128, data: <Uint8Array ..>}

Unsupport

  • 32bit bitmap

Related projects

License

MIT

You can’t perform that action at this time.