]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/bmploader.h
Add some state checking to ImageLoader
[libs/gui.git] / source / graphics / bmploader.h
1 #ifndef MSP_GRAPHICS_BMPLOADER_H_
2 #define MSP_GRAPHICS_BMPLOADER_H_
3
4 #include <msp/graphics/imageloader.h>
5
6 namespace Msp {
7 namespace Graphics {
8
9 class BmpLoader: public ImageLoader
10 {
11 private:
12         IO::Base &io;
13         unsigned sig_bytes;
14
15 public:
16         BmpLoader(IO::Base &, unsigned = 0);
17
18         static unsigned get_signature_size() { return 2; }
19         static bool detect(const std::string &);
20
21         virtual void load_(Image::Data &);
22 };
23
24 } // namespace Graphics
25 } // namespace Msp
26
27 #endif