Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sail-sail/rgb565_bmp

rgb565 to bmp
https://github.com/sail-sail/rgb565_bmp

Last synced: 6 days ago
JSON representation

rgb565 to bmp

Awesome Lists containing this project

README

        

### rgb565_bmp
rgb565 image cover to bmp image
```typescript
npm install --save rgb565_bmp
```
```typescript
import { readFile, writeFile } from "fs-extra";
import { rgb565_bmp } from "rgb565_bmp";

(async () => {
const rgbBuffer = await readFile(`${__dirname}/test`);
const bmpBuffer = await rgb565_bmp(rgbBuffer, 320, 240);
await writeFile(`${__dirname}/test.bmp`);
})();
```