pixel-converter

1.0.0 • Public • Published

pixel-converter

Pixel format converter. (e.g. bgra2rgba)

example

const cvter = require('pixel-converter')

let buff = Buffer.from([1,2,3,4,5,6,7,8]);
console.log('before', buff);
cvter.BGRA2RGBA(buff);
console.log('after', buff);

install

nodejs

npm i pixel-converter

electron

npm i pixel-converter
npm i --save-dev electron-rebuild
npm i --save-dev electron-prebuilt
.\node_modules\.bin\electron-rebuild.cmd -v 10.1.5/your electron version -w pixel-converter

Package Sidebar

Install

npm i pixel-converter

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.76 kB

Total Files

9

Last publish

Collaborators

  • gaobowen100