]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/png/pngloader.h
Make it possible to load an image into an externally allocated buffer
[libs/gui.git] / source / graphics / png / pngloader.h
index 0bb5fd7a575c2d559939fcbab0a1cf7b71d58b11..7c9390f23f79c4222972f211eeb87d1ad4561bd7 100644 (file)
@@ -14,12 +14,14 @@ private:
        Private *priv;
 
 public:
-       PngLoader(IO::Base &, const std::string &);
+       PngLoader(IO::Base &, unsigned = 0);
        virtual ~PngLoader();
 
+       static unsigned get_signature_size() { return 8; }
        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