]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/png/pngloader.h
Split image loading into headers and pixels
[libs/gui.git] / source / graphics / png / pngloader.h
1 #ifndef MSP_GRAPHICS_PNGLOADER_H_
2 #define MSP_GRAPHICS_PNGLOADER_H_
3
4 #include <msp/graphics/imageloader.h>
5
6 namespace Msp {
7 namespace Graphics {
8
9 class PngLoader: public ImageLoader
10 {
11 private:
12         struct Private;
13
14         Private *priv;
15
16 public:
17         PngLoader(IO::Base &, unsigned = 0);
18         virtual ~PngLoader();
19
20         static unsigned get_signature_size() { return 8; }
21         static bool detect(const std::string &);
22
23         virtual void load_headers_(Image::Data &);
24         virtual void load_pixels_(Image::Data &);
25 };
26
27 } // namespace Graphics
28 } // namespace Msp
29
30 #endif