Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sail-sail/rgb565_bmp
- Owner: sail-sail
- Created: 2019-02-11T09:19:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-10T05:40:03.000Z (almost 6 years ago)
- Last Synced: 2024-12-10T21:26:21.319Z (2 months ago)
- Language: C++
- Size: 831 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`);
})();
```