classgraphics302::BmpFormat
sys::Obj graphics302::BmpFormat : graphics302::ImageFormat
BmpFormat Save and load images in Bitmap format While it's a "dated" format it's easy to use and widely supported
- contentType
virtual override Str contentType()
- load
- save
virtual override Void save(OutStream out, Image302 img, Str:Str options := ([Str:Str])[:])
If opts["withAlpha"] == "true" then the image will be saved in 32 bits mode (only mode that supports alpha) Otherwise it will automatically save in the most compact format possible (with palette if < 256 colors) No compression is used but this could be saved into a ZipStream for pretty effective compression