X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fimage.h;h=51147cefdcf341a882a426933efe52576721d155;hb=0e59815bb5b0327ad0159a615c61afbf20dbd89e;hp=7b5236ecd4f30c151c9c42148e955086c73cc17b;hpb=054fca09f0bbd64fdbd6406a0643de938a9cd4fb;p=libs%2Fgui.git diff --git a/source/graphics/image.h b/source/graphics/image.h index 7b5236e..51147ce 100644 --- a/source/graphics/image.h +++ b/source/graphics/image.h @@ -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; }