]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/image.h
Make it possible to load an image into an externally allocated buffer
[libs/gui.git] / source / graphics / image.h
index 86cfa4589824d9413fbb5996f6e695d4a2e8a93f..51147cefdcf341a882a426933efe52576721d155 100644 (file)
@@ -20,6 +20,7 @@ public:
                unsigned width;
                unsigned height;
                unsigned stride;
+               char *owned_pixels;
                char *pixels;
 
                Data();
@@ -35,6 +36,8 @@ public:
        void load_file(const std::string &);
        void load_io(IO::Seekable &);
        void load(ImageLoader &);
+       void load_into(ImageLoader &, void *);
+       void load_headers(ImageLoader &);
 
        PixelFormat get_format() const { return data.fmt; }
        unsigned get_width() const { return data.width; }