X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgraphics%2Fbmploader.h;h=60be2dc14cf066a87450eefba6e05613109cbc89;hb=917c43de100807f4397e36b66b1a748dbf44370e;hp=db9af1db4b28405616cf5f64c8735e99cae97c74;hpb=5715968065256daa4c43d5365cf5e268d75e007a;p=libs%2Fgui.git diff --git a/source/graphics/bmploader.h b/source/graphics/bmploader.h index db9af1d..60be2dc 100644 --- a/source/graphics/bmploader.h +++ b/source/graphics/bmploader.h @@ -6,11 +6,12 @@ namespace Msp { namespace Graphics { -class BmpLoader: public RegisteredImageLoader +class BmpLoader: public ImageLoader { private: IO::Base &io; unsigned sig_bytes; + bool invert_row_order; public: BmpLoader(IO::Base &, unsigned = 0); @@ -18,7 +19,8 @@ public: static unsigned get_signature_size() { return 2; } static bool detect(const std::string &); - virtual void load(Image::Data &); + virtual void load_headers_(Image::Data &); + virtual void load_pixels_(Image::Data &); }; } // namespace Graphics