Skip to content

Bitmap - generating on the fly in nodejs javascript - bitmap 64x32 with 1 till 4 lines with autosize  #6

@yboujraf

Description

@yboujraf

Dear @jhuckaby

I hope you are very well in this moment and my best wishes for 2020, health and $$$$ ;-)

I am back to you regarding your repository. Nice job.

I am controlling some bitmap push button and need to generate on the fly a bitmap array each time a value parameter changed.

Bitmap structure of the push button is :

image

Size 64x32
Color 1 bit (Black : 0xFF, white : 0x00)
pixels are on top right corner.
And if you see the picture above, I need to reverse the bits.

Use case 1 . generating bitmap array of byte (here 256 bytes) with 1 till 4 lines

  • with possible auto size, position (x,y) ,wrap, space between lines, ... and be possible to invert for each line separately the background .

Use case 2 : generating bitmap array from a picture loaded from file bmp, png, jpeg, ... and generate the bitmap array as specified above with resige to 64x32 if possible keeping aspect ratio.

I appreciate if you could help me for this purpose or route me to to the correct way.

My Best Wishses for your family and enjoy live
Youssef

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions