Code Monkey home page Code Monkey logo

anycodetobmp's Introduction

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 <any code or text file>


Here is a simple helloworld cpp file

#include<iostream>
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

helloworld preview

NOTE This is 30x larger version, click here to see the real file.

Use any text editor to open this bmp file

vim hello.cpp.bmp

helloworld vim

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 :)

anycodetobmp's People

Contributors

kaitohh avatar

Watchers

朱元清 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.