Skip to main content

Module images

Module images 

Source
Expand description

Uncompressed BMP/TGA storage, preservation and RGBA conversion.

Structs§

DecodedImage
Decoded top-row-first RGBA pixels.
ImageRecord
Complete image storage including metadata, palette, padding and footer.

Functions§

create_bmp
Construct a top-down 32-bit BMP from RGBA pixels.
create_tga
Construct a top-left 32-bit TGA from RGBA pixels.
decode_bmp
Decode BMP pixels into top-row-first RGBA.
decode_tga
Decode TGA pixels into top-row-first RGBA.
parse_bmp
Parse BI_RGB BMP bytes without dropping original metadata or pixel padding.
parse_tga
Parse uncompressed truecolour TGA bytes without dropping identifier or footer.
write_bmp
Write and validate an edited BMP document.
write_tga
Write and validate an edited TGA document.