1 #ifndef MSP_GRAPHICS_BMPLOADER_H_
2 #define MSP_GRAPHICS_BMPLOADER_H_
4 #include <msp/graphics/imageloader.h>
9 class BmpLoader: public ImageLoader
13 unsigned sig_bytes = 0;
14 bool invert_row_order = false;
17 BmpLoader(IO::Base &, unsigned = 0);
19 static unsigned get_signature_size() { return 2; }
20 static bool detect(const std::string &);
22 void load_headers_(Image::Data &) override;
23 void load_pixels_(Image::Data &) override;
26 } // namespace Graphics