X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fbmploader.h;h=5f8ad0a6f48cba9b59263de7b09dd817411b44f5;hb=d7686e3867e3c68cec0d3767a21f9d2408383085;hp=273e104407056300f29367c7343c5636a5c82c47;hpb=d3bc6c9c2cfaaedaabfd4b5b7bf4e1da2de51331;p=libs%2Fgui.git diff --git a/source/graphics/bmploader.h b/source/graphics/bmploader.h index 273e104..5f8ad0a 100644 --- a/source/graphics/bmploader.h +++ b/source/graphics/bmploader.h @@ -2,15 +2,17 @@ #define MSP_GRAPHICS_BMPLOADER_H_ #include +#include "mspgui_api.h" namespace Msp { namespace Graphics { -class BmpLoader: public ImageLoader +class MSPGUI_API BmpLoader: public ImageLoader { private: IO::Base &io; - unsigned sig_bytes; + unsigned sig_bytes = 0; + bool invert_row_order = false; public: BmpLoader(IO::Base &, unsigned = 0); @@ -18,7 +20,8 @@ public: static unsigned get_signature_size() { return 2; } static bool detect(const std::string &); - virtual void load(Image::Data &); + void load_headers_(Image::Data &) override; + void load_pixels_(Image::Data &) override; }; } // namespace Graphics