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

Add core:image/bmp #3609

Merged
merged 2 commits into from
Jun 6, 2024
Merged

Add core:image/bmp #3609

merged 2 commits into from
Jun 6, 2024

Conversation

Kelimion
Copy link
Member

@Kelimion Kelimion commented May 20, 2024

Support for loading Windows + OS/2 BMP files.

  • 1, 2, 4, 8, 16, 24 and 32 bpp
  • Uncompressed, RLE4, RLE8 and Bit Field compression modes

Handles V3, V4, V5, OS/2 v1 + v2.x, and various truncated headers.

TODO(Jeroen):

  • Right now all images are returned as 24-bit RGB. The core:image options to extend to RGBA (and use alpha where present) could be added, but RGBA bitmaps are very rare and not well supported (in other software).
  • Add support to write 24-bit or 32-bit BMP with V4 header and default bit fields for 4-channel images, V3 header for 3-channel images.

@gingerBill gingerBill merged commit f010544 into odin-lang:master Jun 6, 2024
5 checks passed
@Kelimion Kelimion deleted the bmp branch June 6, 2024 15:30
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.

2 participants