GithubHelp home page GithubHelp logo

binary-data-processing's Introduction

BMP Implementation

A PHP Based implementation of the BMP File Format.

Motivation

I haven't worked with binary files that much yet and was intrested in learning more about them. Therefore, I've set the goal to implement the BMP file format in PHP.

To challange myself I've decided that the only sources I am allowed to use are php.net and this version of the BMP File Format documentation documentation. The main goal is to be able to read and write bmp images.

Project requirements

To consider this project as done, it must contain the code to do the following:

  1. Read individual pixel values from example.bmp
  2. Be able to display image information, this must include:
    • Height
    • Width
    • Colors
  3. Modify example.bmp, modifications include:
    • Swap the sides of the image (so the left half becomes the right half, and vice versa)
    • Convert the white background to another color
  4. Generate an image, matching specifications:
    • Should contain a square of 100px high
    • The square should have a 5px red border
    • The square should have a green filling
    • The square should be centered in the image
    • The image should be 300px in width
    • The image should be 200px in height

binary-data-processing's People

Contributors

nusje2000 avatar

Stargazers

 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.