]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/image.h
Replace Image::load_memory with load_io
[libs/gui.git] / source / graphics / image.h
index db65010311425bb988336bac7db6317839b6d075..137f856f21f5736d40dbecae6275a26919c42536 100644 (file)
@@ -1,7 +1,9 @@
 #ifndef MSP_GRAPHICS_IMAGE_H_
 #define MSP_GRAPHICS_IMAGE_H_
 
+#include <stdexcept>
 #include <string>
+#include <msp/io/base.h>
 #include "pixelformat.h"
 
 namespace Msp {
@@ -35,7 +37,7 @@ public:
        ~Image();
 
        void load_file(const std::string &);
-       void load_memory(const void *, unsigned);
+       void load_io(IO::Base &);
        PixelFormat get_format() const;
        unsigned get_width() const;
        unsigned get_height() const;