https://github.com/KaitoHH/AnyCodeToBmp
https://github.com/KaitoHH/AnyCodeToBmp
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/KaitoHH/AnyCodeToBmp
- Owner: KaitoHH
- Created: 2017-04-03T13:24:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T15:34:47.000Z (almost 9 years ago)
- Last Synced: 2024-10-27T17:24:06.181Z (over 1 year ago)
- Language: C
- Size: 41 KB
- Stars: 27
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- stars - KaitoHH/AnyCodeToBmp
README
## AnyCodeToBmp
This program turns any code file (or any text file) into a BMP image file without losing any text information. It adds a BMP header to the head of the original file and keep all texts remain in the BMP file.
## Usage
Usage:
`bmp `
---
Here is a simple `helloworld` cpp file
```
#include
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
```
save it to `hello.cpp` and then run
```
./bmp hello.cpp
```
on the `*nix OS` or
```
bmp.exe hello.cpp
```
on the `Windows OS`
a file named `hello.cpp.bmp` will create, which looks like

**NOTE** This is *30x* larger version, click [here](https://github.com/KaitoHH/AnyCodeToBmp/raw/master/example/hello.cpp.bmp) to see the real file.
Use any text editor to open this bmp file
```
vim hello.cpp.bmp
```

You will find that the code is almost the same as the original one except the bmp header and some new lines.
**If you find any code that can generate a good-looking image, please send me your code, and I will post it here for everyone to watch :)**