Code Monkey home page Code Monkey logo

bmparray's Introduction

bmparray's People

Contributors

tuhinshubhra avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

arpsabbir

bmparray's Issues

generateArray() : generate an array in two dimensions (width, height)

Dear @Tuhinshubhra

Nice tool.

It will be great if we could define the size of the array in two dimensions when generating the array.

like this :

My bitmap has a size of (64x32) 1bit resolution

TWO Dimensions array :

To get in binary and/or hex value the array.

bitmap_[32][8] =
{
    { 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111 },     //Line #1
    { 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111 },     //Line #2
    { 0b11111111, 0b11111111, 0b11111111, 0b11110000, 0b00001111, 0b11111111, 0b11111111, 0b11111111 },     //Line #3
    { 0b11111111, 0b11111111, 0b11111111, 0b00000000, 0b00000001, 0b11111111, 0b11111111, 0b11111111 },     //Line #4
    { 0b11111111, 0b11111111, 0b11111100, 0b00000000, 0b00000000, 0b01111111, 0b11111111, 0b11111111 },     //Line #5
    { 0b11111111, 0b11111111, 0b11111000, 0b00000000, 0b00000000, 0b00111111, 0b11111111, 0b11111111 },     //Line #6
    { 0b11111111, 0b11111111, 0b11110000, 0b00000000, 0b00000000, 0b00011111, 0b11111111, 0b11111111 },     //Line #7
    { 0b11111111, 0b11111111, 0b11100000, 0b00000000, 0b00000000, 0b00001111, 0b11111111, 0b11111111 },     //Line #8
    { 0b11111111, 0b11111111, 0b11000000, 0b00000000, 0b00000000, 0b00000111, 0b11111111, 0b11111111 },     //Line #9
    { 0b11111111, 0b11111111, 0b10000000, 0b01000000, 0b00000100, 0b00000011, 0b11111111, 0b11111111 },     //Line #10
    { 0b11111111, 0b11111111, 0b10000000, 0b11100000, 0b00001110, 0b00000011, 0b11111111, 0b11111111 },     //Line #11
    { 0b11111111, 0b11111111, 0b00000001, 0b11110000, 0b00011111, 0b00000001, 0b11111111, 0b11111111 },     //Line #12
    { 0b11111111, 0b11111111, 0b00000000, 0b11100000, 0b00001110, 0b00000001, 0b11111111, 0b11111111 },     //Line #13
    { 0b11111111, 0b11111110, 0b00000000, 0b01000000, 0b00000100, 0b00000000, 0b11111111, 0b11111111 },     //Line #14
    { 0b11111111, 0b11111110, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b11111111, 0b11111111 },     //Line #15
    { 0b11111111, 0b11111110, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b11111111, 0b11111111 },     //Line #16
    { 0b11111111, 0b11111110, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b11111111, 0b11111111 },     //Line #17
    { 0b11111111, 0b11111110, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b11111111, 0b11111111 },     //Line #18
    { 0b11111111, 0b11111111, 0b00000000, 0b00000000, 0b00000000, 0b00000001, 0b11111111, 0b11111111 },     //Line #19
    { 0b11111111, 0b11111111, 0b00000000, 0b00000000, 0b00000000, 0b00000001, 0b11111111, 0b11111111 },     //Line #20
    { 0b11111111, 0b11111111, 0b10000000, 0b00000000, 0b00000000, 0b00000011, 0b11111111, 0b11111111 },     //Line #21
    { 0b11111111, 0b11111111, 0b10000001, 0b10000000, 0b00000011, 0b00000011, 0b11111111, 0b11111111 },     //Line #22
    { 0b11111111, 0b11111111, 0b11000001, 0b11100000, 0b00001111, 0b00000111, 0b11111111, 0b11111111 },     //Line #23
    { 0b11111111, 0b11111111, 0b11100000, 0b11111111, 0b11111110, 0b00001111, 0b11111111, 0b11111111 },     //Line #24
    { 0b11111111, 0b11111111, 0b11110000, 0b00011111, 0b11110000, 0b00011111, 0b11111111, 0b11111111 },     //Line #25
    { 0b11111111, 0b11111111, 0b11111000, 0b00000000, 0b00000000, 0b00111111, 0b11111111, 0b11111111 },     //Line #26
    { 0b11111111, 0b11111111, 0b11111100, 0b00000000, 0b00000000, 0b01111111, 0b11111111, 0b11111111 },     //Line #27
    { 0b11111111, 0b11111111, 0b11111111, 0b00000000, 0b00000001, 0b11111111, 0b11111111, 0b11111111 },     //Line #28
    { 0b11111111, 0b11111111, 0b11111111, 0b11100000, 0b00001111, 0b11111111, 0b11111111, 0b11111111 },     //Line #29
    { 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111 },     //Line #30
    { 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111 },     //Line #31
    { 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111 },     //Line #32
};

Best Regards,

ROTATE bitmap

Dear @Tuhinshubhra

Nice tool.

ROTATE

My bitmap has a size of (64x32) 1bit resolution and if rotate -90° then I will get an array with size (32x64).

Possible value should be 'Rotate' -90, -180, -270, 90,180, 270

Best Regards,

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.