Odin icon indicating copy to clipboard operation
Odin copied to clipboard

Add core:image/bmp

Open Kelimion opened this issue 1 year ago • 0 comments

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.

Kelimion avatar May 20 '24 19:05 Kelimion