Skip to content
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

Fix 32-bit bitmap support #124

Merged
merged 1 commit into from Jan 21, 2016
Merged

Fix 32-bit bitmap support #124

merged 1 commit into from Jan 21, 2016

Conversation

mtolly
Copy link
Contributor

@mtolly mtolly commented Jan 21, 2016

Alrighty, after learning way too much about the BMP format, here's a fix for my previous PR (sorry!) which supports the custom byte ordering format. For simplicity it only supports the four bitmasks which move full bytes to full bytes (see getBitfield). I think this feature is also possible with 24-bit bitmaps (they'd show up as (24, 1, 3)) but I'm gonna leave that to someone who actually needs it.

I also added the (32, 1, 0) image I actually needed to decode so that both formats are tested. All the bitmap tests convert correctly with the toPng executable :) And I removed the -- TODO: put 3 for RGBA comment since the 0 it puts out now is correct.

Twinside added a commit that referenced this pull request Jan 21, 2016
Fix 32-bit bitmap support
@Twinside Twinside merged commit b485c46 into Twinside:master Jan 21, 2016
@Twinside
Copy link
Owner

Works like a charm :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants