-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript Re-Write #24
base: master
Are you sure you want to change the base?
Conversation
… and make it more spec-compliant, add RGBA output byte order option
add badges
pixelate the map
@shaozilee thoughts? |
|
||
private parseRGBA() { | ||
this.data = Buffer.alloc(this.width * this.height * 4); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nice additional feature to support is blank space at the end of the header. You can achieve this by using the offset that you parsed earlier and moving pos to that location before extracting pixel data.
this.pos = this.offset; |
I need the mask support that this adds as well as the offset support that I just suggested. |
@hipstersmoothie would you release it as bmp-ts ? |
@BobBuehler @thbl I have released my fork as |
I did a rewrite of the library in typescript. It helps formalize the code a little bit.
Things I added:
I understand if you don't want to merge this. I can release it as
bmp-ts
if you decide not to. If you do decide you are okay with merging this I need to change a few things back but it shouldn't be hard.Thanks for the awesome library!