]> 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 7b5236ecd4f30c151c9c42148e955086c73cc17b..51147cefdcf341a882a426933efe52576721d155 100644 (file)
@@ -20,6 +20,7 @@ public:
                unsigned width;
                unsigned height;
                unsigned stride;
+               char *owned_pixels;
                char *pixels;
 
                Data();
@@ -35,6 +36,7 @@ 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; }